Auth: add logged_in_from_session hook
This commit is contained in:
parent
40fc2f8c75
commit
9798fab49d
1 changed files with 2 additions and 0 deletions
|
@ -218,6 +218,8 @@ class Auth {
|
||||||
$user->username,
|
$user->username,
|
||||||
self :: $logged_method?self :: $logged_method:'unknown',
|
self :: $logged_method?self :: $logged_method:'unknown',
|
||||||
$user->backend);
|
$user->backend);
|
||||||
|
Hook :: trigger(
|
||||||
|
'logged_in_from_session', array('method' => self :: $logged_method, 'user' => $user));
|
||||||
return $user;
|
return $user;
|
||||||
}
|
}
|
||||||
Log::warning('Invalid user data in session, drop it');
|
Log::warning('Invalid user data in session, drop it');
|
||||||
|
|
Loading…
Reference in a new issue