From 66367797dfd7ad794881494e20eb64d4368056ac 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 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/Controller/ClientFlowLoginController.php b/core/Controller/ClientFlowLoginController.php index c00a720ac5..b58f56194c 100644 --- a/core/Controller/ClientFlowLoginController.php +++ b/core/Controller/ClientFlowLoginController.php @@ -138,7 +138,7 @@ class ClientFlowLoginController extends Controller { $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 ba9caabd0b..9230cfb4af 100644 --- a/tests/Core/Controller/ClientFlowLoginControllerTest.php +++ b/tests/Core/Controller/ClientFlowLoginControllerTest.php @@ -257,7 +257,7 @@ class ClientFlowLoginControllerTest extends TestCase { 'core', '403', [ - 'file' => 'State token does not match', + 'message' => 'State token does not match', ], 'guest' );