fix: send_reset_password_email limit email error
This commit is contained in:
parent
c3b18d00fe
commit
865395abba
@ -253,7 +253,7 @@ class AccountService:
|
||||
account_email = account.email if account else email
|
||||
account_language = account.interface_language if account else languages[0]
|
||||
|
||||
if cls.reset_password_rate_limiter.is_rate_limited(account.email):
|
||||
if cls.reset_password_rate_limiter.is_rate_limited(account_email):
|
||||
raise RateLimitExceededError(f"Rate limit exceeded for email: {account_email}. Please try again later.")
|
||||
|
||||
code = "".join([str(random.randint(0, 9)) for _ in range(6)])
|
||||
|
Loading…
Reference in New Issue
Block a user