Minor error in the message token mail input (2FA) #1427

Closed
opened 2025-10-09 17:15:00 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @Nyxtorm on GitHub.

Subject of the issue

During 2FA, the message for the length of the mail token does not correspond to the value chosen for EMAIL_TOKEN_SIZE

Deployment environment

* Bitwarden_rs version: v1.19.0-551810c4
* Web-vault version: v2.19.0
* Running within Docker: false
* Internet access: true
* Uses a proxy: false
* DNS Check: true
* Time Check: true
* Domain Configuration Check: true
* HTTPS Check: true
* Database type: SQLite
* Clients used: web
* Reverse proxy and version: nginx/1.19.8

Steps to reproduce

1- Connect with the 2FA, choosing the option by mail
2- Compare the input message with the value of parameter EMAIL_TOKEN_SIZE

Expected behaviour

This message should get its value from the EMAIL_TOKEN_SIZE parameter

Actual behaviour

Its value is fixed at 6

Troubleshooting data

Here, EMAIL_TOKEN_SIZE is set to 10

image

Sorry for my bad English.

Originally created by @Nyxtorm on GitHub. ### Subject of the issue During 2FA, the message for the length of the mail token does not correspond to the value chosen for `EMAIL_TOKEN_SIZE` ### Deployment environment ``` * Bitwarden_rs version: v1.19.0-551810c4 * Web-vault version: v2.19.0 * Running within Docker: false * Internet access: true * Uses a proxy: false * DNS Check: true * Time Check: true * Domain Configuration Check: true * HTTPS Check: true * Database type: SQLite * Clients used: web * Reverse proxy and version: nginx/1.19.8 ``` ### Steps to reproduce 1- Connect with the 2FA, choosing the option by mail 2- Compare the input message with the value of parameter `EMAIL_TOKEN_SIZE` ### Expected behaviour This message should get its value from the `EMAIL_TOKEN_SIZE` parameter ### Actual behaviour Its value is fixed at 6 ### Troubleshooting data Here, `EMAIL_TOKEN_SIZE `is set to 10 ![image](https://user-images.githubusercontent.com/20800786/111969227-493b1d00-8afa-11eb-89f5-50691eed2440.png) Sorry for my bad English.
Author
Owner

@BlackDex commented on GitHub:

That is not something we can change dynamically. It is build in into the the bitwarden web-vault.
See:

@BlackDex commented on GitHub: That is not something we can change dynamically. It is build in into the the bitwarden web-vault. See: * https://github.com/bitwarden/web/blob/1ea8762eeb6b43871e2101995e12668a6380fb45/src/locales/fr/messages.json#L651 * https://github.com/bitwarden/web/blob/1ea8762eeb6b43871e2101995e12668a6380fb45/src/locales/en/messages.json#L651
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#1427