Merge pull request #893 from Sephster/fix-exception-hint

Change hint so it applies to both the auth and access token requests
This commit is contained in:
Andrew Millington 2018-04-21 22:02:09 +01:00 committed by GitHub
commit 52d7952ba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ class OAuthServerException extends \Exception
public static function unsupportedGrantType() public static function unsupportedGrantType()
{ {
$errorMessage = 'The authorization grant type is not supported by the authorization server.'; $errorMessage = 'The authorization grant type is not supported by the authorization server.';
$hint = 'Check the `grant_type` parameter'; $hint = 'Check that all required parameters have been provided';
return new static($errorMessage, 2, 'unsupported_grant_type', 400, $hint); return new static($errorMessage, 2, 'unsupported_grant_type', 400, $hint);
} }