Revert "feat: email register refactor" (#25367)
This commit is contained in:
parent
598ec07c91
commit
ea61420441
34 changed files with 79 additions and 1916 deletions
|
|
@ -31,12 +31,6 @@ class PasswordResetRateLimitExceededError(BaseHTTPException):
|
|||
code = 429
|
||||
|
||||
|
||||
class EmailRegisterRateLimitExceededError(BaseHTTPException):
|
||||
error_code = "email_register_rate_limit_exceeded"
|
||||
description = "Too many email register emails have been sent. Please try again in 1 minute."
|
||||
code = 429
|
||||
|
||||
|
||||
class EmailChangeRateLimitExceededError(BaseHTTPException):
|
||||
error_code = "email_change_rate_limit_exceeded"
|
||||
description = "Too many email change emails have been sent. Please try again in 1 minute."
|
||||
|
|
@ -91,12 +85,6 @@ class EmailPasswordResetLimitError(BaseHTTPException):
|
|||
code = 429
|
||||
|
||||
|
||||
class EmailRegisterLimitError(BaseHTTPException):
|
||||
error_code = "email_register_limit"
|
||||
description = "Too many failed email register attempts. Please try again in 24 hours."
|
||||
code = 429
|
||||
|
||||
|
||||
class EmailChangeLimitError(BaseHTTPException):
|
||||
error_code = "email_change_limit"
|
||||
description = "Too many failed email change attempts. Please try again in 24 hours."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue