mirror of
https://github.com/bitwarden/browser
synced 2026-02-21 20:04:02 +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:
@@ -28,7 +28,6 @@
|
||||
<bit-label>{{ "recoveryCodeTitle" | i18n }}</bit-label>
|
||||
<input bitInput type="text" formControlName="recoveryCode" appInputVerbatim />
|
||||
</bit-form-field>
|
||||
<hr />
|
||||
<div class="tw-flex tw-gap-2">
|
||||
<button type="submit" bitButton bitFormButton buttonType="primary" [block]="true">
|
||||
{{ "submit" | i18n }}
|
||||
|
||||
Reference in New Issue
Block a user