Logout user after password reset

This commit is contained in:
PCoder 2019-02-24 23:32:50 +01:00
parent bdb57221e5
commit bcb3d6165d
1 changed files with 1 additions and 0 deletions

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: