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

Update MFA flow #1082

Merged
merged 12 commits into from
May 16, 2024
Merged

Update MFA flow #1082

merged 12 commits into from
May 16, 2024

Conversation

stnguyen90
Copy link
Contributor

What does this PR do?

  • hide MFA methods and recovery if MFA is disabled
  • only show MFA recovery codes after a factor is enabled
  • allow using other methods to regenerate recovery codes

Test Plan

Manual

Related PRs and Issues

Parent:

Have you read the Contributing Guidelines on issues?

Yes

Copy link

vercel bot commented May 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
console-billing ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2024 6:18pm
console-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2024 6:18pm
console-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2024 6:18pm
console-preview-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 16, 2024 6:18pm

@stnguyen90 stnguyen90 marked this pull request as ready for review May 15, 2024 16:20
Base automatically changed from chore-bump-pink to main May 15, 2024 17:19
@stnguyen90 stnguyen90 self-assigned this May 16, 2024
stnguyen90 added 12 commits May 16, 2024 11:11
It's weird to show the "Successfully logged in." message when the user
is prompted for verification because they aren't fully logged in yet.
This will allow us to reuse the component in other places.
If a user inputs an incorrect code, deletes what they put, and then
enters a different code, the InputDigits component should auto submit
again if autoSubmit is true.
If the InputDigits component is removed, the element will be undefined
but the onValueChange callback may still trigger. This change ensures
an element is found to prevent calling querySelector on undefined.
@stnguyen90 stnguyen90 merged commit 0af1af4 into main May 16, 2024
7 checks passed
@stnguyen90 stnguyen90 deleted the fix-mfa-flow branch May 16, 2024 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants