From b43bbf9d98570191357ca45d68eb501e9322b2c9 Mon Sep 17 00:00:00 2001 From: Jean-Romain Garnier Date: Fri, 17 Apr 2020 19:59:25 +0200 Subject: [PATCH] Confirm email after resetting password --- users/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/users/views.py b/users/views.py index 027896ed..a2a62316 100644 --- a/users/views.py +++ b/users/views.py @@ -1025,8 +1025,10 @@ def process_passwd(request, req): u_form = PassForm(request.POST or None, instance=user, user=request.user) if u_form.is_valid(): with transaction.atomic(), reversion.create_revision(): + user.confirm_mail() u_form.save() reversion.set_comment("Password reset") + req.delete() messages.success(request, _("The password was changed.")) return redirect(reverse("index"))