|
|
|
|
@ -27,7 +27,7 @@ class InvalidTokenError(BaseHTTPException):
|
|
|
|
|
|
|
|
|
|
class PasswordResetRateLimitExceededError(BaseHTTPException):
|
|
|
|
|
error_code = "password_reset_rate_limit_exceeded"
|
|
|
|
|
description = "Password reset rate limit exceeded. Try again later."
|
|
|
|
|
description = "Too many password reset emails have been sent. Please try again in 5 minutes."
|
|
|
|
|
code = 429
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -39,5 +39,5 @@ class EmailCodeError(BaseHTTPException):
|
|
|
|
|
|
|
|
|
|
class EmailOrPasswordMismatchError(BaseHTTPException):
|
|
|
|
|
error_code = "email_or_password_mismatch"
|
|
|
|
|
description = "The email or password is incorrect."
|
|
|
|
|
code = 400
|
|
|
|
|
description = "The email or password is mismatched."
|
|
|
|
|
code = 400
|