fix: changed email login use oauth will create an new account (#23057)
This commit is contained in:
parent
d409fb5f58
commit
de28bb1075
2 changed files with 12 additions and 1 deletions
|
|
@ -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"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue