diff options
author | Jeremy Lin <[email protected]> | 2022-01-24 01:17:00 -0800 |
---|---|---|
committer | Jeremy Lin <[email protected]> | 2022-01-24 01:17:00 -0800 |
commit | 7d552dbdc8d8d7536ac7f7d3a8c8ad9a7d316f83 (patch) | |
tree | 234a8814d9a7574c0196c667164804fb41d834c1 /.env.template | |
parent | 9a60eb04c20fcf1f43767290ee795efe946ef3eb (diff) | |
download | vaultwarden-7d552dbdc8d8d7536ac7f7d3a8c8ad9a7d316f83.tar.gz vaultwarden-7d552dbdc8d8d7536ac7f7d3a8c8ad9a7d316f83.zip |
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.
Diffstat (limited to '.env.template')
-rw-r--r-- | .env.template | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.env.template b/.env.template index 1f4c937f..8da88cdc 100644 --- a/.env.template +++ b/.env.template @@ -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 |