mirror of
https://github.com/nextcloud/server.git
synced 2026-07-15 21:03:00 -04:00
Merge pull request #4192 from nextcloud/fix/custom-default-app-redirect-2fa-selection
Redirect to 2FA selection screen
This commit is contained in:
commit
b78876236d
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue