Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Commit

Permalink
Bug: oauth fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hqy2000 committed Mar 11, 2018
1 parent 2125760 commit d292a85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions config/packages/sentry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ sentry:
- 'Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException'
- 'Symfony\Component\Debug\Exception\FatalErrorException'
- 'RuntimeException'
- 'Symfony\Component\Console\Exception\RuntimeException'
-
- 'Symfony\Component\Console\Exception\RuntimeException'
2 changes: 1 addition & 1 deletion src/Security/OAuthAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function checkCredentials($credentials, UserInterface $user)

public function onAuthenticationFailure(Request $request, AuthenticationException $exception)
{
return new JsonResponse(array("code" => 400, "message" => "Incorrect Information"), 400);
return new JsonResponse(array("code" => 400, "message" => $exception->getMessage()), 400);
}

public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey)
Expand Down

0 comments on commit d292a85

Please sign in to comment.