perf: 优化ttl

This commit is contained in:
ibuler 2021-09-14 19:30:03 +08:00 committed by Jiangjie.Bai
parent bf68ddf09e
commit c115ef7b47

View File

@ -13,5 +13,6 @@ class SSOSettingSerializer(serializers.Serializer):
help_text=_("Other service can using SSO token login to JumpServer without password")
)
AUTH_SSO_AUTHKEY_TTL = serializers.IntegerField(
required=False, label=_('SSO auth key TTL'), help_text=_("Unit: second")
required=False, label=_('SSO auth key TTL'), help_text=_("Unit: second"),
min_value=1, max_value=60*30
)