Require verified email before allowing user to enable 2FA #5866
Labels
documentation
feature request
help needed
We'd love volunteers to advise on or help fix/implement this.
Milestone
What's the problem this feature will solve?
Sometimes people enable two-factor auth and then run into some kind of problem like losing access to their provisioned TOTP-generating app. We want to make it easier for PyPI admins to check the legitimacy of users' requests for account recovery in such circumstances.
Describe the solution you'd like
Prohibit users from enabling any 2FA until the user has verified at least one email address on their account.
Additional context
(followup to #5661, filed on @di's behalf)
The text was updated successfully, but these errors were encountered: