Skip to content

Commit

Permalink
fix: add email check in register service
Browse files Browse the repository at this point in the history
  • Loading branch information
GareArc committed Dec 23, 2024
1 parent 6adc56a commit 495b4e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/services/account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,8 @@ def register(
) -> Account:
db.session.begin_nested()
"""Register account"""
if AccountDeletionLogService.email_in_freeze(email):
raise AccountRegisterError("Email is in freeze.")
try:
account = AccountService.create_account(
email=email,
Expand Down

0 comments on commit 495b4e9

Please sign in to comment.