-
Notifications
You must be signed in to change notification settings - Fork 9
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
Disable backup codes UI until primary provider enabled #47
Comments
IMHO: Backup codes should be disabled automatically once TOTP (or in the future, WebAuthN) is disabled, disabling it shouldn't revoke existing codes though. IMHO We don't want a user to have 2FA enabled via Backup codes alone. I don't know how the UI would look like in that case, perhaps it should be disabled during the login process (ie. 2FA is not activated) but the user overview should have a green tick? |
I noticed this as well and am glad there's an issue to address it. As a user who hadn't yet activated 2fa, I was able to click on the 'Two-Factor Backup Codes' option on https://wordpress.org/support/users/bengreeley/edit/account/?screen=account-status , and didn't verify I printed or saved the codes. The next time I logged in, I was prompted to provide a backup code. I'd think we would want to address two things:
|
@bengreeley there is an upstream issue which details what you are suggestion: WordPress/two-factor#507 |
That makes sense. #21 covers most of that, so I guess in this issue we'd just want to modify the UI. The Backup Codes screen should probably not be enabled until another provider is. That would prevent accidentally enabling it. Keeping the green tick and existing backup codes does make sense to me. Maybe we allow the screen to be shown, but it shows a warning instead of the current content. The warning could explain that they need to have another provider enabled in order for backup codes to be enabled. |
IMO we still need the UI warning for UX. Otherwise the backup codes will still be generated before TOTP is setup, and the user will have to re-generate them if they didn't save them. |
Agreed, I didn't intend on closing this :) |
I think this should be included in the MVP, at least the part where the backup codes look clickable before 2fa has been setup. |
I'm moving this to MVP as I reckon the part of the backup code is better off having some good handle to prevent users from accidentally enabling it. |
Can we please have some concise requirements added to this? I'd like to pick it up but it's not clear to me exactly what needs to be done. |
IMO it'd be helpful to also add a warning, otherwise I'm not sure how the user would understand why backup codes are disabled, or how to enabled them. |
Update: The goal of this has shifted, see #47 (comment)
Right now we only allow regenerating backup codes, but not disabling them. The
Disable Two Factor...
button on the TOTP screen only disables TOTP. Should it also disable backup codes, or should the user be able to control them independently?Related #21
The text was updated successfully, but these errors were encountered: