mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 01:10:09 +03:00
Minor error in the message token mail input (2FA) #1427
Reference in New Issue
Block a user
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 @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_SIZEDeployment environment
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_SIZEExpected behaviour
This message should get its value from the
EMAIL_TOKEN_SIZEparameterActual behaviour
Its value is fixed at 6
Troubleshooting data
Here,
EMAIL_TOKEN_SIZEis set to 10Sorry for my bad English.
@BlackDex commented on GitHub:
That is not something we can change dynamically. It is build in into the the bitwarden web-vault.
See:
1ea8762eeb/src/locales/fr/messages.json (L651)1ea8762eeb/src/locales/en/messages.json (L651)