feat: 增加会话最大连接时长设置

This commit is contained in:
Eric
2023-08-08 18:11:25 +08:00
committed by Bryan
parent f486c843bf
commit 7bef4b07ff
6 changed files with 476 additions and 279 deletions

View File

@@ -167,6 +167,11 @@ class SecuritySettingSerializer(SecurityPasswordRuleSerializer, SecurityAuthSeri
label=_('Connection max idle time (minute)'),
help_text=_('If idle time more than it, disconnect connection.')
)
SECURITY_MAX_SESSION_TIME = serializers.IntegerField(
min_value=1, max_value=99999, required=False,
label=_('Session max connection time (hour)'),
help_text=_('If session connection time more than it, disconnect connection.')
)
SECURITY_LUNA_REMEMBER_AUTH = serializers.BooleanField(
label=_("Remember manual auth")
)