perf: 优化 otp windows 最小支持设置 0

pull/11802/head
Bai 2023-10-11 14:06:56 +08:00 committed by Bryan
parent 09f71d80eb
commit 3ef8e9603a
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class SecurityAuthSerializer(serializers.Serializer):
required=False, max_length=16, label=_('OTP issuer name'),
)
OTP_VALID_WINDOW = serializers.IntegerField(
min_value=1, max_value=10,
min_value=0, max_value=10,
label=_("OTP valid window")
)
SECURITY_MFA_VERIFY_TTL = serializers.IntegerField(