mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-25 17:25:57 +03:00
[GH-ISSUE #6203] 2FA Recovery Code no longer working #2370
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#2370
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shadow1runner on GitHub (Aug 20, 2025).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/6203
Originally assigned to: @BlackDex on GitHub.
I've enabled two 2FA mechanisms: mail and authenticator app.
Following the upstream docs, I'm trying to recover using the recovery code which I've just copied from https://mydomain.example.localhost/#/settings/security/two-factor (alongside the user name and master password, of course).
I do not get an error in the web UI, but I'm just redirected to the main login view; the network pane reads as follows:
The log shows a single line:
As per the discussion here, we could identify that upstream has refactored their recovery code handling and added a new type.
Originally posted by @shadow1runner in https://github.com/dani-garcia/vaultwarden/discussions/6200
@AdityAV42 commented on GitHub (Aug 30, 2025):
Hey I am also facing the same issue. THe Recovery Code is not working. It fails to reset Two-Step Login (MFA). The provided recovery code from the Web Vault does not allow me to bypass Two-Step Login (MFA). When I enter the code, the app still prompts me for my master password.
Steps to Reproduce:
Expected Behavior
The recovery code should reset or disable my MFA, and allow me to log in without needing a Two-Step Login code.
Actual Behavior:
After entering the recovery code, I am still prompted to enter my master password. Then again the MFA is asked.
Also how to change your recovery code manually?
@BlackDex commented on GitHub (Aug 30, 2025):
This issue is already resolved in the current
testingtagged image.Only way to disable/remove mfa is via the admin backend
/admin.There you can remove all mfa items per user.
@AlexKalopsia commented on GitHub (Oct 7, 2025):
Also facing this issue, with the difference that this is happening to my admin account, which makes things quite a bit worse. Luckily I do have an open session and I managed to export everything, but yeah not great. Has the fix been merged in the latest image, or is it still in
testing?@codedge commented on GitHub (Oct 19, 2025):
I used the
testingimage and can confirm the recovery code works now. In thelatestimage it still is broken (redirect to login page).