aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/api
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2025-09-05 14:47:46 +0200
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-09-05 14:47:46 +0200
commit4db193c7f7188fe7f5ec64cf758cf2f26f38f96d (patch)
tree942ad947842147586512622fc090f7e561d24122 /app/controllers/api
parent31c795a98b14037fcfb1b6f176ebd5f813b292fc (diff)
use Request::has()tic-4587
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/oauth2/authorize.php4
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();
}
}