fix: string error

This commit is contained in:
Joe 2024-08-29 18:03:31 +08:00
parent 83bf1c9160
commit c3b18d00fe

View File

@ -42,7 +42,7 @@ class ForgotPasswordSendEmailApi(Resource):
try:
token = AccountService.send_reset_password_email(account=account, email=args["email"])
except RateLimitExceededError:
logging.warning(f"Rate limit exceeded for email: {args["email"]}")
logging.warning(f"Rate limit exceeded for email: {args['email']}")
raise PasswordResetRateLimitExceededError()
return {"result": "success", "data": token}