mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-25 01:34:15 +01:00
Fix test error on kick-out inactive user
This commit is contained in:
parent
a571095e11
commit
7f2806e7d9
@ -42,7 +42,9 @@ public function handle($request, Closure $next, ...$quards)
|
||||
$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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user