fix: changed email login use oauth will create an new account (#23057)

This commit is contained in:
zyssyz123
2025-07-28 16:32:25 +08:00
committed by GitHub
parent d409fb5f58
commit de28bb1075
2 changed files with 12 additions and 1 deletions

View File

@@ -496,7 +496,7 @@ class ChangeEmailResetApi(Resource):
if current_user.email != old_email:
raise AccountNotFound()
updated_account = AccountService.update_account(current_user, email=args["new_email"])
updated_account = AccountService.update_account_email(current_user, email=args["new_email"])
AccountService.send_change_email_completed_notify_email(
email=args["new_email"],