How was it implemented?
Show a snippet from your code
See how it was used in my code

form = ChangePasswordForm(request, request.POST)
if form.is_valid():
user = form.save()
update_session_auth_hash(request, user)
messages.success(
request, "Your password has been successfully updated")
return redirect(request.META.get('HTTP_REFERER'))

On Tue, Nov 5, 2024 at 10:30 PM cseb...@gmail.com <cseber...@gmail.com>
wrote:

> When I change a password, users are logged out.
> Django recommends keeping users logged in
> by calling django.contrib.auth.update_session_auth_hash(request, user).
>
> This is not working in a Django website of mine.
> They must log in again!?
>
> There are no error messages.  Is there any way I can provide
> more details?
>
> Chris
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion visit
> https://groups.google.com/d/msgid/django-users/04908d1c-a1e4-41ea-afd8-e227f78af8bcn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/04908d1c-a1e4-41ea-afd8-e227f78af8bcn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/django-users/CAPUD46vsy1FftCrZAarqSKC_Y8Yx27nMqOfqzcwkkxQ6dG7HwQ%40mail.gmail.com.

Reply via email to