1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-10-07 08:50:31 +00:00

Increase length limit for email token generation

The current limit of 19 is an artifact of the implementation, which can be
easily rewritten in terms of a more general string generation function.
The new limit is 255 (max value of a `u8`); using a larger type would
probably be overkill.
This commit is contained in:
Jeremy Lin 2022-01-24 01:17:00 -08:00
commit 7d552dbdc8
5 changed files with 15 additions and 43 deletions

View file

@ -185,7 +185,7 @@
# EMAIL_EXPIRATION_TIME=600
## Email token size
## Number of digits in an email token (min: 6, max: 19).
## Number of digits in an email 2FA token (min: 6, max: 255).
## Note that the Bitwarden clients are hardcoded to mention 6 digit codes regardless of this setting!
# EMAIL_TOKEN_SIZE=6