mirror of
https://github.com/langgenius/dify.git
synced 2026-05-02 00:18:03 +08:00
feat: add login limit error
This commit is contained in:
@ -41,3 +41,11 @@ class EmailOrPasswordMismatchError(BaseHTTPException):
|
||||
error_code = "email_or_password_mismatch"
|
||||
description = "The email or password is mismatched."
|
||||
code = 400
|
||||
|
||||
|
||||
class EmailPasswordLoginLimitError(BaseHTTPException):
|
||||
error_code = "email_code_login_limit"
|
||||
description = (
|
||||
"Too many incorrect password attempts. Please verify your identity with the email code to complete login."
|
||||
)
|
||||
code = 429
|
||||
|
||||
Reference in New Issue
Block a user