An array of:But, when I am watching the source code of /core/model/modx/processors/security/login.php (https://github.com/modxcms/revolution/blob/develop/core/model/modx/processors/security/login.php , checked from 2.0 to 2.2, the cited code doesn't differ much), I see the following:
rememberme - Boolean set if user wants password to be remembered.
lifetime - The session cookie lifetime for this login.
loginContext - The context key this login is occurring in.
$onBeforeLoginParams = array(
'username' => $username,
'password' => $givenPassword,
'attributes' => array(
'rememberme' => & $rememberme,
'lifetime' => & $lifetime,
'loginContext' => & $loginContext,
'addContexts' => & $addContexts,
)
);
$rt = false; /* $rt will be an array if the event fires */
if ($mgrEvents) {
$rt = $modx->invokeEvent("OnBeforeManagerLogin", $onBeforeLoginParams);
} else {
$rt = $modx->invokeEvent("OnBeforeWebLogin", $onBeforeLoginParams);
}This question has been answered by opengeek. See the first response.