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 # Password was changed
if result: if result:
logout(request)
return render(request, 'changedpassword.html', { 'user': user } ) return render(request, 'changedpassword.html', { 'user': user } )
# Password not changed, instead got some kind of error # Password not changed, instead got some kind of error
else: else: