-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Distinguish 'done' from 'configuring' in 2FA #39411
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
base: master
Are you sure you want to change the base?
Conversation
|
Can someone review this please? |
|
Is there anything blocking the merge of this? It would be great if this could be merged. |
|
See the open todos in the PR description |
|
For the tests: let's also add one that tests the change of session data IDs during an authentication. That can happen when an instance is upgraded in the middle of a user's authentication attempt. |
6d79ece to
d7cb86a
Compare
|
Hello @michielbdejong, I'm reopening your PR and requesting reviews! :) Is there anything left blocking you? We'd like to help you get this one in! |
Summary
When there is a token in the session for which the user is still setting up 2FA, setting
self::SESSION_UID_DONE("two_factor_auth_passed") is a misnomer.AFAICT, everything works fine if you set nothing into the session and just return 'false' from this if-statement, but in case there is some code (now or in the future) that needs to know if the user is configuring 2FA, to play it safe I would suggest storing
self::SESSION_UID_CONFIGURING("two_factor_auth_configuring") into the session.TODO
Checklist