alogin
See login().
def alogin(
request: HttpRequest,
user: User,
backend: str = None
) - > null
See login().
Parameters
| Name | Type | Description |
|---|---|---|
| request | HttpRequest | The current HTTP request object containing the session to be updated. |
| user | User | The user instance to log into the current session. |
| backend | str = None | The dotted import path of the authentication backend used to authenticate the user. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; the function modifies the request session and user attributes in-place. |