Login logout handled : GWM
This commit is contained in:
parent
417e228546
commit
ca56be21b6
@ -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([
|
return service('response')->setJSON([
|
||||||
'status' => 403,
|
'status' => 403,
|
||||||
'message' => 'Session expired, please login again'
|
'message' => 'Session expired, please login again'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user