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
commit de28bb1075
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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"],