修复了一些已知问题
This commit is contained in:
@@ -130,7 +130,7 @@ class RedisClient:
|
||||
key = f"login_attempts:{username}"
|
||||
attempts = await RedisClient.get(key)
|
||||
attempts = int(attempts) + 1 if attempts else 1
|
||||
await RedisClient.set(key, attempts, 900) # 15分钟锁定
|
||||
await RedisClient.set(key, attempts, 300) # 5分钟锁定
|
||||
return attempts
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user