Skip to content

Commit

Permalink
Fixed issue FriendsOfSymfony#59
Browse files Browse the repository at this point in the history
  • Loading branch information
koemeet committed Mar 14, 2014
1 parent d216976 commit 0b61d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OAuth2/OAuth2.php
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ protected function grantAccessTokenUserCredentials(IOAuth2Client $client, array
$stored = $this->storage->checkUserCredentials($client, $input["username"], $input["password"]);

if ($stored === false) {
throw new OAuth2ServerException(self::HTTP_BAD_REQUEST, self::ERROR_INVALID_GRANT);
throw new OAuth2ServerException(self::HTTP_BAD_REQUEST, self::ERROR_INVALID_GRANT, "Invalid username and password combination");
}

return $stored;
Expand Down

0 comments on commit 0b61d41

Please sign in to comment.