Originally created by @fhibler on GitHub (Nov 7, 2023).
Subject of the issue
Managing 2FA in Web UI does not work anymore
Deployment environment
Your environment (Generated via diagnostics page)
Vaultwarden version: v1.30.0
Web-vault version: v2023.10.0
OS/Arch: linux/x86_64
Running within Docker: true (Base: Debian)
Environment settings overridden: true
Uses a reverse proxy: true
IP Header check: true (X-Forwarded-For)
Internet access: true
Internet access via a proxy: false
DNS Check: true
Browser/Server Time Check: true
Server/NTP Time Check: true
Domain Configuration Check: true
HTTPS Check: true
Database type: SQLite
Database version: 3.41.2
Clients used:
Reverse proxy and version:
Other relevant information:
Steps to reproduce
Go to your Account Settings -> Security -> Tab 'Two-step login'
Click to 'Manage' on a 2FA provider (like Email or FIDO2 WebAuthn)
Click 'Send Code' under 'Send a verification code to your email'
Red Error popup 'An error has occured - An unexpected error has occurred.' appears on the top right side of the page
The logs of the application server also show this:
[2023-11-07 12:47:19.670][request][INFO] POST /api/accounts/request-otp
[2023-11-07 12:47:19.670][response][INFO] 404 Not Found
Expected behaviour
Email with verification code is being sent
Actual behaviour
Can't manage any 2FA anymore
Troubleshooting data
Originally created by @fhibler on GitHub (Nov 7, 2023).
### Subject of the issue
Managing 2FA in Web UI does not work anymore
### Deployment environment
### Your environment (Generated via diagnostics page)
* Vaultwarden version: v1.30.0
* Web-vault version: v2023.10.0
* OS/Arch: linux/x86_64
* Running within Docker: true (Base: Debian)
* Environment settings overridden: true
* Uses a reverse proxy: true
* IP Header check: true (X-Forwarded-For)
* Internet access: true
* Internet access via a proxy: false
* DNS Check: true
* Browser/Server Time Check: true
* Server/NTP Time Check: true
* Domain Configuration Check: true
* HTTPS Check: true
* Database type: SQLite
* Database version: 3.41.2
* Clients used:
* Reverse proxy and version:
* Other relevant information:
### Steps to reproduce
* Go to your Account Settings -> Security -> Tab 'Two-step login'
* Click to 'Manage' on a 2FA provider (like Email or FIDO2 WebAuthn)
* Click 'Send Code' under 'Send a verification code to your email'
* Red Error popup 'An error has occured - An unexpected error has occurred.' appears on the top right side of the page
The logs of the application server also show this:
```
[2023-11-07 12:47:19.670][request][INFO] POST /api/accounts/request-otp
[2023-11-07 12:47:19.670][response][INFO] 404 Not Found
```
### Expected behaviour
Email with verification code is being sent
### Actual behaviour
Can't manage any 2FA anymore
### Troubleshooting data


Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @fhibler on GitHub (Nov 7, 2023).
Subject of the issue
Managing 2FA in Web UI does not work anymore
Deployment environment
Your environment (Generated via diagnostics page)
Steps to reproduce
The logs of the application server also show this:
Expected behaviour
Email with verification code is being sent
Actual behaviour
Can't manage any 2FA anymore
Troubleshooting data
@BlackDex commented on GitHub (Nov 7, 2023):
Probably a Duplicate of #4042