diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-12-23 20:53:26 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2016-12-23 20:53:26 +0100 |
commit | eff904473d5bea5fe36eb2183e993b49b8b999e9 (patch) | |
tree | 315319a2ae5a222f4f9806918c8a0787ad8ad8a0 | |
parent | 56c016946d0695a62e418839cf19786a223b4ae7 (diff) | |
download | nextcloud-server-eff904473d5bea5fe36eb2183e993b49b8b999e9.tar.gz nextcloud-server-eff904473d5bea5fe36eb2183e993b49b8b999e9.zip |
Set redirect_url on 2FA challenge page
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r-- | core/Controller/TwoFactorChallengeController.php | 1 | ||||
-rw-r--r-- | tests/Core/Controller/TwoFactorChallengeControllerTest.php | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/core/Controller/TwoFactorChallengeController.php b/core/Controller/TwoFactorChallengeController.php index b2614138123..34f0092bea8 100644 --- a/core/Controller/TwoFactorChallengeController.php +++ b/core/Controller/TwoFactorChallengeController.php @@ -128,6 +128,7 @@ class TwoFactorChallengeController extends Controller { 'provider' => $provider, 'backupProvider' => $backupProvider, 'logout_attribute' => $this->getLogoutAttribute(), + 'redirect_url' => $redirect_url, 'template' => $tmpl->fetchPage(), ]; return new TemplateResponse($this->appName, 'twofactorshowchallenge', $data, 'guest'); diff --git a/tests/Core/Controller/TwoFactorChallengeControllerTest.php b/tests/Core/Controller/TwoFactorChallengeControllerTest.php index 8a1cfb9edf1..9421a2537e8 100644 --- a/tests/Core/Controller/TwoFactorChallengeControllerTest.php +++ b/tests/Core/Controller/TwoFactorChallengeControllerTest.php @@ -143,6 +143,7 @@ class TwoFactorChallengeControllerTest extends TestCase { 'backupProvider' => $backupProvider, 'logout_attribute' => 'logoutAttribute', 'template' => '<html/>', + 'redirect_url' => '/re/dir/ect/url', ], 'guest'); $this->assertEquals($expected, $this->controller->showChallenge('myprovider', '/re/dir/ect/url')); |