diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-04-04 15:47:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-04 15:47:35 -0500 |
commit | b78876236dcc604ff128875f077bb2afdcca37a3 (patch) | |
tree | 1cbc2357f41bc149ac2d487034c43c34cfc0597d | |
parent | 72b8784e2ab1b2d99303125d4c269757c49eb724 (diff) | |
parent | a7cc8c86abbb57f280268112a3fc734500b06e92 (diff) | |
download | nextcloud-server-b78876236dcc604ff128875f077bb2afdcca37a3.tar.gz nextcloud-server-b78876236dcc604ff128875f077bb2afdcca37a3.zip |
Merge pull request #4192 from nextcloud/fix/custom-default-app-redirect-2fa-selection
Redirect to 2FA selection screen
-rw-r--r-- | lib/private/legacy/util.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php index 7f351c5b00e..0672fefbe0c 100644 --- a/lib/private/legacy/util.php +++ b/lib/private/legacy/util.php @@ -981,9 +981,9 @@ class OC_Util { ); exit(); } - // Redirect to index page if 2FA challenge was not solved yet + // Redirect to 2FA challenge selection if 2FA challenge was not solved yet if (\OC::$server->getTwoFactorAuthManager()->needsSecondFactor(\OC::$server->getUserSession()->getUser())) { - header('Location: ' . \OCP\Util::linkToAbsolute('', 'index.php')); + header('Location: ' . \OC::$server->getURLGenerator()->linkToRoute('core.TwoFactorChallenge.selectChallenge')); exit(); } } |