1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-08 19:43:45 +00:00

fix(2fa-recovery-code-error): [Auth/PM-19885] Better error handling when 2FA recovery code is invalid (#16145)

Implements better error handling when a user enters an invalid 2FA recovery code. Upon entering an invalid code:
- Keep the user on the `/recover-2fa` page (This also makes it so the incorrect code remains in the form field so the user can see what they entered, if they mistyped the code, etc.)
- Show an inline error: "Invalid recovery code"
This commit is contained in:
rr-bw
2025-08-29 12:25:31 -07:00
committed by GitHub
parent e0da2671b4
commit ec950853bc
4 changed files with 90 additions and 21 deletions

View File

@@ -1517,6 +1517,9 @@
"recoveryCodeTitle": {
"message": "Recovery code"
},
"invalidRecoveryCode": {
"message": "Invalid recovery code"
},
"authenticatorAppTitle": {
"message": "Authenticator app"
},