-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
2FA does not work #6
Comments
Hi @sten thanks for using this can you help me to verify it’s due to these changes in fortify that causing the issue? it seems like is the confirmable flow and default config change you can try if comment out ‘confirm’ key in fortify config solve the issue |
@wychoong Thanks for the swift reply! I tried with In Jetstream you only need to enter the code of the app. I assume because you have initially confirmed the app and the Are you planning to support the same behaviour as in Jetstream? Thank you very much! |
Is I believe the issue you facing is due to the change of confirmable 2fa in fortify is enabled by default now, and this confirmable flow was not implemented at that time thus the error. Would be great if you can confirm things work fine if set to
|
If I set
|
Will try if I can replicate this. Do send a PR if you manage to fix it |
hi, this should be solved with the next release and |
When I register a new user and then enable 2FA, I am stuck on the page with the "Enable two factor auth". I get a success message, but it does not switch to the QR-code page.
I debugged this a bit and it is related to the condition in the two-factor.blade.php file. If I change the default:
to:
I can see the QR-code.
The issue is that in the
hasEnabledTwoFactorAuthentication()
function, the existence of thetwo_factor_confirmed_at
field is checked, which is only set after you scan the QR-code.Then there is an additional issue, when I change the condition and scan the QR-code, it does not ask me to enter the code that I receive after scanning the QR-code, so the
two_factor_confirmed_at
is never set. I do not see such a form in the blade file. The need for the form is described in the Laravel Fortify docs, see https://laravel.com/docs/9.x/fortify#confirming-two-factor-authenticationThanks for the great package!
The text was updated successfully, but these errors were encountered: