perf: 优化ttl

pull/6860/head
ibuler 2021-09-14 19:30:03 +08:00 committed by Jiangjie.Bai
parent bf68ddf09e
commit c115ef7b47
1 changed files with 2 additions and 1 deletions

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
)