Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 11, 2018. It is now read-only.

Commit 0b61d41

Browse files
committed
Fixed issue FriendsOfSymfony#59
1 parent d216976 commit 0b61d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/OAuth2/OAuth2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ protected function grantAccessTokenUserCredentials(IOAuth2Client $client, array
904904
$stored = $this->storage->checkUserCredentials($client, $input["username"], $input["password"]);
905905

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

910910
return $stored;

0 commit comments

Comments
 (0)