Logout user after password reset
This commit is contained in:
parent
bdb57221e5
commit
bcb3d6165d
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue