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