Skip to content
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

Remove potentially confusing callout when setting up 2FA #17371

Merged
merged 2 commits into from
Jan 8, 2025
Merged

Conversation

di
Copy link
Member

@di di commented Jan 8, 2025

This removes an unnecessary and duplicate warning callout that can be distracting from what we actually want the user to do when setting up 2FA.

Before After
Screenshot 2025-01-08 at 12 13 01 PM Screenshot 2025-01-08 at 12 15 45 PM

The callout is only shown when the user is actually able to begin setting up 2FA:

Screenshot 2025-01-08 at 12 21 17 PM

Helps to alleviate confusion raised in #17370.

@di di requested a review from a team as a code owner January 8, 2025 17:25
Copy link
Member

@miketheman miketheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested this yet, but with this change, what happens if a user has 2fa enabled, but hasn't generated any recovery codes yet if they enrolled in 2FA before burning a recovery code was required?

@di
Copy link
Member Author

di commented Jan 8, 2025

WIth recovery codes generated and one burned:
Screenshot 2025-01-08 at 4 28 48 PM

With recovery codes generated and none burned:
Screenshot 2025-01-08 at 4 30 37 PM

WIth no recovery codes:
Screenshot 2025-01-08 at 4 31 04 PM

Copy link
Member

@miketheman miketheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thanks for verifying!

@di di merged commit 47ee74b into pypi:main Jan 8, 2025
21 checks passed
@di di deleted the fix/17370 branch January 8, 2025 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants