Visanduma / nova-two-factor

Laravel nova in-dashboard 2FA feature
53 stars 32 forks source link

Question: except_routes / mandatory_routes #63

Closed interpegasus closed 4 months ago

interpegasus commented 4 months ago

First of all, thanks for sharing this useful library. Great job!

I have a question. At the moment, users can opt to enable MFA. Is it possible to make MFA mandatory to access certain routes, such as '/resources/users' or even all routes in Laravel Nova until 2FA is enabled?

Thanks.

lahirulhr commented 4 months ago

Hi

Currently, there is no built-in feature to achieve this behavior. but you can easily create your own middleware to accomplish this.