Skip to content

Commit

Permalink
πŸ’Œ Will send automatically a confirmation e-mail when changing it
Browse files Browse the repository at this point in the history
  • Loading branch information
Lugrim committed Oct 14, 2023
1 parent e8244d9 commit 7bf2747
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions insalan/user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def patch(self, request):

if "email" in data:
user.email = UserManager.normalize_email(data["email"])
UserMailer.send_email_confirmation(user)

if "first_name" in data:
user.first_name = data["first_name"]
Expand Down

0 comments on commit 7bf2747

Please sign in to comment.