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