From 16cca10b1167a0cfc9a4d16fe622b80383f6f3e3 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 18 Jan 2019 09:17:26 +0100 Subject: [PATCH] Fix template paramter Else we get shown an error page instead of the correct 403. Signed-off-by: Roeland Jago Douma --- core/Controller/ClientFlowLoginController.php | 2 +- tests/Core/Controller/ClientFlowLoginControllerTest.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/Controller/ClientFlowLoginController.php b/core/Controller/ClientFlowLoginController.php index 96e55848b9c01..7395325a7c570 100644 --- a/core/Controller/ClientFlowLoginController.php +++ b/core/Controller/ClientFlowLoginController.php @@ -138,7 +138,7 @@ private function stateTokenForbiddenResponse() { $this->appName, '403', [ - 'file' => $this->l10n->t('State token does not match'), + 'message' => $this->l10n->t('State token does not match'), ], 'guest' ); diff --git a/tests/Core/Controller/ClientFlowLoginControllerTest.php b/tests/Core/Controller/ClientFlowLoginControllerTest.php index b54897ddc4485..13eb2895bbb75 100644 --- a/tests/Core/Controller/ClientFlowLoginControllerTest.php +++ b/tests/Core/Controller/ClientFlowLoginControllerTest.php @@ -253,7 +253,7 @@ public function testRedirectPageWithInvalidToken() { 'core', '403', [ - 'file' => 'State token does not match', + 'message' => 'State token does not match', ], 'guest' ); @@ -272,7 +272,7 @@ public function testRedirectPageWithoutToken() { 'core', '403', [ - 'file' => 'State token does not match', + 'message' => 'State token does not match', ], 'guest' ); @@ -321,7 +321,7 @@ public function testGenerateAppPasswordWithInvalidToken() { 'core', '403', [ - 'file' => 'State token does not match', + 'message' => 'State token does not match', ], 'guest' );