-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to force optional #51
Comments
Unfortunately that's not possible. You should create your own middleware to implement such logic. You could take a look at the middleware in the package for some inspiration. @akiftezcan38 |
@Baspa Thanks I think you should add this feature. Because this is a feature that everyone needs. |
I might be able to add it in the future, but in the upcoming weeks I don't have any time (due holiday). If you want you could try to change the |
Actually what you do is very simple. Just add a condition in the RedirectIfTwoFactorAuthenticatable middleware. Also a column in the users table and that's it. I am not very familiar with the contents of the package, so I avoid opening a Merge request. @Baspa |
What happened?
Hello.
forced() function forces 2FA for the whole system
but
I want to force 2fa for some users. but I don't want to force it for some users. is there a way I can do this?
Can you help me
How to reproduce the bug
that's it
Repository
filament-2fa
Package Version
1.6
PHP Version
8.2
Laravel Version
11
Which operating systems does with happen with?
Linux
Notes
No response
The text was updated successfully, but these errors were encountered: