Auth: add logged_in_from_session hook

This commit is contained in:
Benjamin Renard 2023-02-27 13:22:53 +01:00
parent 40fc2f8c75
commit 9798fab49d

View file

@ -218,6 +218,8 @@ class Auth {
$user->username,
self :: $logged_method?self :: $logged_method:'unknown',
$user->backend);
Hook :: trigger(
'logged_in_from_session', array('method' => self :: $logged_method, 'user' => $user));
return $user;
}
Log::warning('Invalid user data in session, drop it');