From 0b61d41075223797a754b7bee5564ecb452a32a9 Mon Sep 17 00:00:00 2001 From: steffenbrem Date: Fri, 14 Mar 2014 16:21:52 +0100 Subject: [PATCH] Fixed issue #59 --- lib/OAuth2/OAuth2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OAuth2/OAuth2.php b/lib/OAuth2/OAuth2.php index 898e681..5505319 100644 --- a/lib/OAuth2/OAuth2.php +++ b/lib/OAuth2/OAuth2.php @@ -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;