mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-08 21:14:00 +05:30
Fixed incorrect parameter name
This commit is contained in:
parent
9ead06077c
commit
9df1c8e20d
@ -364,7 +364,7 @@ maintenance of the server.',
|
|||||||
$authParams['grant_type'] : $_POST['grant_type'];
|
$authParams['grant_type'] : $_POST['grant_type'];
|
||||||
|
|
||||||
// Ensure response type is one that is recognised
|
// Ensure response type is one that is recognised
|
||||||
if ( ! in_array($params['response_type'], $this->grant_types)) {
|
if ( ! in_array($params['grant_type'], $this->grant_types)) {
|
||||||
|
|
||||||
throw new OAuthServerClientException(
|
throw new OAuthServerClientException(
|
||||||
$this->errors['unsupported_grant_type'], 7);
|
$this->errors['unsupported_grant_type'], 7);
|
||||||
|
Loading…
Reference in New Issue
Block a user