mirror of https://github.com/jumpserver/jumpserver
perf: 优化 otp windows 最小支持设置 0
parent
09f71d80eb
commit
3ef8e9603a
|
@ -128,7 +128,7 @@ class SecurityAuthSerializer(serializers.Serializer):
|
||||||
required=False, max_length=16, label=_('OTP issuer name'),
|
required=False, max_length=16, label=_('OTP issuer name'),
|
||||||
)
|
)
|
||||||
OTP_VALID_WINDOW = serializers.IntegerField(
|
OTP_VALID_WINDOW = serializers.IntegerField(
|
||||||
min_value=1, max_value=10,
|
min_value=0, max_value=10,
|
||||||
label=_("OTP valid window")
|
label=_("OTP valid window")
|
||||||
)
|
)
|
||||||
SECURITY_MFA_VERIFY_TTL = serializers.IntegerField(
|
SECURITY_MFA_VERIFY_TTL = serializers.IntegerField(
|
||||||
|
|
Loading…
Reference in New Issue