2FA login recovery broken #1426

Closed
opened 2026-02-05 00:54:45 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @richardmeilinger on GitHub (Dec 14, 2022).

The 2FA recovery is broken using the most recent docker image testing
It works fine with the latest docker image.

image

[2022-12-14 11:18:11.510][request][INFO] POST /identity/accounts/prelogin
[2022-12-14 11:18:11.511][response][INFO] (prelogin) POST /identity/accounts/prelogin => 200 OK
[2022-12-14 11:18:11.558][request][INFO] POST /api/two-factor/recover
[2022-12-14 11:18:11.558][auth][ERROR] Unauthorized Error: No access token provided
[2022-12-14 11:18:11.558][_][WARN] Request guard `Headers` failed: "No access token provided".
[2022-12-14 11:18:11.558][_][WARN] No 401 catcher registered. Using Rocket default.
[2022-12-14 11:18:11.558][response][INFO] (recover) POST /api/two-factor/recover => 401 Unauthorized
Originally created by @richardmeilinger on GitHub (Dec 14, 2022). The 2FA recovery is broken using the most recent docker image `testing` It works fine with the `latest` docker image. ![image](https://user-images.githubusercontent.com/36570827/207583157-975df08d-abbc-4a11-93c2-8e5e78fb8d42.png) ``` [2022-12-14 11:18:11.510][request][INFO] POST /identity/accounts/prelogin [2022-12-14 11:18:11.511][response][INFO] (prelogin) POST /identity/accounts/prelogin => 200 OK [2022-12-14 11:18:11.558][request][INFO] POST /api/two-factor/recover [2022-12-14 11:18:11.558][auth][ERROR] Unauthorized Error: No access token provided [2022-12-14 11:18:11.558][_][WARN] Request guard `Headers` failed: "No access token provided". [2022-12-14 11:18:11.558][_][WARN] No 401 catcher registered. Using Rocket default. [2022-12-14 11:18:11.558][response][INFO] (recover) POST /api/two-factor/recover => 401 Unauthorized ```
OVERLORD added the bug label 2026-02-05 00:54:45 +03:00
Author
Owner

@BlackDex commented on GitHub (Dec 14, 2022):

Looks like they changed the workflow there to. Before you first needed to login, and then you could enter the recovery token. Now they combined them.

Thanks for the report.

@BlackDex commented on GitHub (Dec 14, 2022): Looks like they changed the workflow there to. Before you first needed to login, and then you could enter the recovery token. Now they combined them. Thanks for the report.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#1426