-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Do not show 2FA settings if the user has no providers available #25273
Do not show 2FA settings if the user has no providers available #25273
Conversation
return true; | ||
} | ||
} | ||
return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about if the backupprovider is the onyl provider but it is still enabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to explain this on L97-98. If the backup codes provider is the only one, then we don't show the settings neither.
But now that I think about it maybe we should only hide this if there is no provide other than the backup provider and 2FA is not enforced.
Users who have it enforced should see the backup code provider settings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
36c6da6
to
d382146
Compare
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
d382146
to
378f116
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works 👍
Fixes #13971
To test install a 2FA provider, then you will see the 2FA settings as a user. Once there is only the backup codes one left, the settings vanish.