Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

keep the user logged in even though user changes password django

from django.contrib.auth import authenticate, login, update_session_auth_hash

###after changing password in view
update_session_auth_hash(request, form.user) 
         ###form.user is currentuser also can be accesed from request.user 
 
PREVIOUS NEXT
Tagged: #user #logged #user #password #django
ADD COMMENT
Topic
Name
1+3 =