mirror of
https://github.com/zulip/zulip.git
synced 2025-10-22 20:42:14 +00:00
forms: Correct TOTP token minimum value to 0.
A TOTP token value of 000000 is just as likely as any other value. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
9de4618202
commit
cdf5ff7acd
@@ -635,7 +635,7 @@ class AuthenticationTokenForm(TwoFactorAuthenticationTokenForm):
|
||||
"""
|
||||
|
||||
otp_token = forms.IntegerField(
|
||||
label=_("Token"), min_value=1, max_value=int("9" * totp_digits()), widget=forms.TextInput
|
||||
label=_("Token"), min_value=0, max_value=int("9" * totp_digits()), widget=forms.TextInput
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user