mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-30 20:50:06 +02:00
Fix test error on kick-out inactive user
This commit is contained in:
@ -42,7 +42,9 @@ class KickOutInactiveUser
|
||||
$user->save();
|
||||
|
||||
Log::notice('Inactive user detected, authentication rejected');
|
||||
if (method_exists('Illuminate\Support\Facades\Auth', 'logout')) {
|
||||
Auth::logout();
|
||||
}
|
||||
|
||||
return response()->json(['message' => 'unauthorised'], Response::HTTP_UNAUTHORIZED);
|
||||
}
|
||||
|
Reference in New Issue
Block a user