diff options
Diffstat (limited to 'app/controllers/api')
| -rw-r--r-- | app/controllers/api/oauth2/authorize.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/api/oauth2/authorize.php b/app/controllers/api/oauth2/authorize.php index 2643c19..bd0b2ca 100644 --- a/app/controllers/api/oauth2/authorize.php +++ b/app/controllers/api/oauth2/authorize.php @@ -23,7 +23,7 @@ class Api_Oauth2_AuthorizeController extends OAuth2Controller { $method = $this->getMethod(); - if (Request::submitted('auth_token')) { + if (Request::has('auth_token')) { if ('nobody' === $GLOBALS['user']->id) { throw new LoginException(); } @@ -124,7 +124,7 @@ class Api_Oauth2_AuthorizeController extends OAuth2Controller */ private function assertValidAuthToken(string $authToken): void { - if (Request::submitted('auth_token') && $authToken !== Request::get('auth_token')) { + if (Request::has('auth_token') && $authToken !== Request::get('auth_token')) { throw InvalidAuthTokenException::different(); } } |
