Logout user after password reset

This commit is contained in:
PCoder 2019-02-24 23:32:50 +01:00
parent bdb57221e5
commit bcb3d6165d

View file

@ -381,6 +381,7 @@ class ChangePassword(LoginRequiredMixin, View):
)
# Password was changed
if result:
logout(request)
return render(request, 'changedpassword.html', { 'user': user } )
# Password not changed, instead got some kind of error
else: