Login logout handled : GWM

This commit is contained in:
Gowtham M 2025-10-13 17:16:07 +05:30
parent 417e228546
commit ca56be21b6

View File

@ -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'