Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

forms: Correct TOTP token minimum value to 0.

Anders Kaseorgcdf5ff7acd86
diff --git a/zerver/forms.py b/zerver/forms.py
index 3329cfab172..d6c15096bd0 100644
--- a/zerver/forms.py
+++ b/zerver/forms.py
@@ -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
)