From 53725099c777a833237f172fb3336299f15ae82c Mon Sep 17 00:00:00 2001 From: GareArc Date: Sat, 21 Dec 2024 14:13:19 -0500 Subject: [PATCH] fix: token wrong position --- api/services/account_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/services/account_service.py b/api/services/account_service.py index 6fe2860505923a..f07e88599f15ca 100644 --- a/api/services/account_service.py +++ b/api/services/account_service.py @@ -245,7 +245,8 @@ def generate_account_deletion_verification_code(account: Account) -> tuple[str, token = TokenManager.generate_token( account=account, token_type="account_deletion", additional_data={"code": code} ) - return code, token + logging.info(f"Account {account.id} generated account deletion verification code {code} with token {token}") + return token, code @classmethod def send_account_deletion_verification_email(cls, account: Account, code: str):