Fixed HTTP method for getting code parameter

This commit is contained in:
Alex Bilbie 2012-07-30 12:10:13 +01:00
parent 8c991b0c61
commit ef928b19cf

View File

@ -410,7 +410,7 @@ class Server
// The authorization code
if ( ! isset($authParams['code']) &&
! isset($_GET['code'])) {
! isset($_POST['code'])) {
throw new OAuthServerClientException(sprintf($this->errors['invalid_request'], 'code'), 0);