fix: reduce login failure record expiration time from 3600 to 600 seconds
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
wxg0103 2025-09-17 17:19:25 +08:00
parent ab93ac7c4e
commit d4bdee1340

View File

@ -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