From 9798fab49d6625d5c2a7ef95490e46d692e1f686 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 27 Feb 2023 13:22:53 +0100 Subject: [PATCH] Auth: add logged_in_from_session hook --- src/Auth.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Auth.php b/src/Auth.php index b0b2232..c2a662c 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -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');