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'))
When I change a password, users are logged out.Django recommends keeping users logged inby 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 providemore 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+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/django-users/04908d1c-a1e4-41ea-afd8-e227f78af8bcn%40googlegroups.com.
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+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/django-users/CAPUD46vsy1FftCrZAarqSKC_Y8Yx27nMqOfqzcwkkxQ6dG7HwQ%40mail.gmail.com.
No comments:
Post a Comment