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
| Name | Type | Description |
|---|---|---|
| request | HttpRequest | The current web request object containing the session to be updated |
| user | User | The user object with the updated credentials used to derive the new session authentication hash |
Returns
| Type | Description |
|---|---|
null | None |