Skip to content

Commit

Permalink
Fix assert that logout without token fails
Browse files Browse the repository at this point in the history
  • Loading branch information
olotintemitope committed Apr 1, 2016
1 parent 328aedd commit 146592f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Auth/Oauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,7 @@ public function loginUser(Request $request, Response $response)
*/
public function logoutUser(Request $request, Response $response, $args)
{
if ($args['logout']) {
return $response->withJson(['message' => 'Logout successful'], 200);

}

return $response->withJson(['message' => 'Logout not successful'], 400);
return $response->withJson(['message' => 'Logout successful'], 200);
}

/**
Expand Down

0 comments on commit 146592f

Please sign in to comment.