mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-19 19:28:08 +02:00
Force logout of inactive users
This commit is contained in:
parent
d15161ab71
commit
ebdca6bb42
@ -42,6 +42,7 @@ class KickOutInactiveUser
|
||||
$user->save();
|
||||
|
||||
Log::notice('Inactive user detected, authentication rejected');
|
||||
Auth::logout();
|
||||
|
||||
return response()->json(['message' => 'unauthorised'], Response::HTTP_UNAUTHORIZED);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user