From ca56be21b628b5fac31e9d75525863bffff531ae Mon Sep 17 00:00:00 2001 From: Gowtham M Date: Mon, 13 Oct 2025 17:16:07 +0530 Subject: [PATCH] Login logout handled : GWM --- app/Filters/JwtAuthFilter.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Filters/JwtAuthFilter.php b/app/Filters/JwtAuthFilter.php index 3c4ca67..e75c6a3 100644 --- a/app/Filters/JwtAuthFilter.php +++ b/app/Filters/JwtAuthFilter.php @@ -50,6 +50,14 @@ class JwtAuthFilter implements FilterInterface ]); } + log_message('info', sprintf( + 'Auto logout triggered for Staff ID: %s. Previous login date: %s, Current date: %s, Logout time updated at: %s', + $userId, + $lastLoginDate, + $todayDate, + date('Y-m-d H:i:s') + )); + return service('response')->setJSON([ 'status' => 403, 'message' => 'Session expired, please login again'