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
|
# 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:
|
||||||
|
|
Loading…
Reference in a new issue