From 495b4e953c2b1a4c6837783783b667cd2fd195e7 Mon Sep 17 00:00:00 2001 From: GareArc Date: Mon, 23 Dec 2024 01:58:22 -0500 Subject: [PATCH] fix: add email check in register service --- api/services/account_service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/services/account_service.py b/api/services/account_service.py index fe1ea9bc1b3de1..38409ed785960a 100644 --- a/api/services/account_service.py +++ b/api/services/account_service.py @@ -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,