Change hint so it applies to both the auth and access token requests

This commit is contained in:
Andrew Millington 2018-04-21 18:07:38 +01:00
parent 7e07033b10
commit 8a619e5c1e
No known key found for this signature in database
GPG Key ID: 815DE090877B53F3

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);
} }