feat: add ip email code ligin limit

This commit is contained in:
Joe
2024-09-30 12:46:20 +08:00
parent 98aa54038f
commit 9f36156514
5 changed files with 61 additions and 2 deletions

View File

@ -50,3 +50,9 @@ class NotAllowedRegister(BaseHTTPException):
error_code = "unauthorized"
description = "Account not found."
code = 400
class EmailSendIpLimitError(BaseHTTPException):
error_code = "email_send_ip_limit"
description = "Too many emails have been sent from this IP address recently. Please try again later."
code = 429