Skip to main content

update_session_auth_hash

Updating a user's password logs out all sessions for the user.

Take the current request and the updated user object from which the new session hash will be derived and update the session hash appropriately to prevent a password change from logging out the session from which the password was changed.

def update_session_auth_hash(
request: HttpRequest,
user: User
) - > null

Updating a user's password logs out all sessions for the user. Take the current request and the updated user object from which the new session hash will be derived and update the session hash appropriately to prevent a password change from logging out the session from which the password was changed.

Parameters

NameTypeDescription
requestHttpRequestThe current web request object containing the session to be updated
userUserThe user object with the updated credentials used to derive the new session authentication hash

Returns

TypeDescription
nullNone