mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:02:46 +00:00
fix: reduce login failure record expiration time from 3600 to 600 seconds
This commit is contained in:
parent
ab93ac7c4e
commit
d4bdee1340
|
|
@ -43,7 +43,7 @@ class LoginResponse(serializers.Serializer):
|
|||
token = serializers.CharField(required=True, label=_("token"))
|
||||
|
||||
|
||||
def record_login_fail(username: str, expire: int = 3600):
|
||||
def record_login_fail(username: str, expire: int = 600):
|
||||
"""记录登录失败次数"""
|
||||
if not username:
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in New Issue