mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-09-12 01:03:09 +00:00
Confirm email after resetting password
This commit is contained in:
parent
ede81adaf7
commit
55cde72512
1 changed files with 2 additions and 0 deletions
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue