mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-23 05:29:52 +05:30
Fixed HTTP method for getting code
parameter
This commit is contained in:
parent
8c991b0c61
commit
ef928b19cf
@ -410,7 +410,7 @@ class Server
|
|||||||
|
|
||||||
// The authorization code
|
// The authorization code
|
||||||
if ( ! isset($authParams['code']) &&
|
if ( ! isset($authParams['code']) &&
|
||||||
! isset($_GET['code'])) {
|
! isset($_POST['code'])) {
|
||||||
|
|
||||||
throw new OAuthServerClientException(sprintf($this->errors['invalid_request'], 'code'), 0);
|
throw new OAuthServerClientException(sprintf($this->errors['invalid_request'], 'code'), 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user