From 024adc14b122d436b743e1e08df5af2e8b4bfe06 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 9 Feb 2023 14:11:28 +0100 Subject: [PATCH] fix(client-login-flow): Use correct response for missing state token Signed-off-by: Christoph Wurst --- core/Controller/ClientFlowLoginV2Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Controller/ClientFlowLoginV2Controller.php b/core/Controller/ClientFlowLoginV2Controller.php index 613829787b46d..ef16cfbd04bf5 100644 --- a/core/Controller/ClientFlowLoginV2Controller.php +++ b/core/Controller/ClientFlowLoginV2Controller.php @@ -187,7 +187,7 @@ public function grantPage(?string $stateToken): StandaloneTemplateResponse { */ public function apptokenRedirect(?string $stateToken, string $user, string $password) { if ($stateToken === null) { - return $this->loginTokenForbiddenResponse(); + return $this->stateTokenMissingResponse(); } if (!$this->isValidStateToken($stateToken)) {