mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-23 08:43:19 +01:00
Fix logout test
This commit is contained in:
parent
25ee8f58fe
commit
b07d599fb8
@ -127,7 +127,8 @@ protected function validateLogin(Request $request)
|
||||
*/
|
||||
public function logout(Request $request)
|
||||
{
|
||||
$this->guard()->logout();
|
||||
$accessToken = Auth::user()->token();
|
||||
$accessToken->revoke();
|
||||
|
||||
return response()->json(['message' => 'signed out'], Response::HTTP_OK);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user