Commit f81567ac authored by Flavio TARSETTI's avatar Flavio TARSETTI

Merge branch '581_fix_session_on_password_change' into 'master'

Properly refresh session after password change

Closes #581

See merge request !412
parents bbac1d98 42950931
Pipeline #46634 passed with stages
in 18 minutes and 39 seconds
......@@ -29,6 +29,7 @@ import datetime
from django.conf import settings
from django.contrib import messages
from django.contrib.auth import update_session_auth_hash
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import PasswordChangeForm
from django.contrib.auth.models import User
......@@ -62,6 +63,7 @@ def account_settings(request):
request, messages.SUCCESS, "Password changed successfully"
update_session_auth_hash(request, password_change_form.user)
elif "token" in request.POST:
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment