chore: style lint

This commit is contained in:
Joe 2024-09-23 11:00:31 +08:00
parent f6f6bb1051
commit 9223b0e6ae
1 changed files with 2 additions and 2 deletions

View File

@ -333,12 +333,12 @@ class AccountService:
count = redis_client.get(key)
if count is None:
return False
count = int(count)
if count > AccountService.LOGIN_MAX_ERROR_LIMITS:
return True
return False
@staticmethod
def reset_login_error_rate_limit(email: str):
key = f"login_error_rate_limit:{email}"