Skip to content

Commit

Permalink
fix: use old email to build reset_url on email change (#4278)
Browse files Browse the repository at this point in the history
Co-authored-by: Julie Rymer <jrymer@biru.sh>
  • Loading branch information
Chadys and Julie Rymer committed Apr 22, 2024
1 parent f1d9ecd commit 992e1c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oscar/apps/customer/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def send_email_changed_email(self, old_user, new_email):
user = self.request.user
extra_context = {
"user": user,
"reset_url": get_password_reset_url(old_user),
"reset_url": get_password_reset_url(user),
"new_email": new_email,
"request": self.request,
}
Expand Down

0 comments on commit 992e1c6

Please sign in to comment.