Skip to main content

alogin

See login().

def alogin(
request: HttpRequest,
user: User,
backend: str = None
) - > null

See login().

Parameters

NameTypeDescription
requestHttpRequestThe current HTTP request object containing the session to be updated.
userUserThe user instance to log into the current session.
backendstr = NoneThe dotted import path of the authentication backend used to authenticate the user.

Returns

TypeDescription
nullNothing is returned; the function modifies the request session and user attributes in-place.