class LogInAuthenticationHandler implements AuthenticationHandler (View source)

This is separate to LogOutAuthenticationHandler so that it can be registered with Injector and called after the other AuthenticationHandler::logIn() implementations

Methods

string
getSessionVariable()

No description

void
setSessionVariable(string $sessionVariable)

No description

RememberLoginHash|null
getRememberLoginHash()

No description

setRememberLoginHash(RememberLoginHash $rememberLoginHash)

No description

Member|null
authenticateRequest(HTTPRequest $request)

No description

logIn(Member $member, bool $persistent = false, HTTPRequest $request = null)

No description

logOut(HTTPRequest $request = null)

No description

Details

string getSessionVariable()

Return Value

string

void setSessionVariable(string $sessionVariable)

Parameters

string $sessionVariable

Return Value

void

RememberLoginHash|null getRememberLoginHash()

Return Value

RememberLoginHash|null

setRememberLoginHash(RememberLoginHash $rememberLoginHash)

Parameters

RememberLoginHash $rememberLoginHash

Member|null authenticateRequest(HTTPRequest $request)

Parameters

HTTPRequest $request

The current HTTP request

Return Value

Member|null

The authenticated Member, or null if this auth mechanism isn't used.

logIn(Member $member, bool $persistent = false, HTTPRequest $request = null)

Parameters

Member $member

The member to log in.

bool $persistent

boolean If set to true, the login may persist beyond the current session.

HTTPRequest $request

The request of the visitor that is logging in, to get, for example, cookies.

Exceptions

InvalidArgumentException

logOut(HTTPRequest $request = null)

Parameters

HTTPRequest $request

The request of the visitor that is logging out, to get, for example, cookies.