Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-08-08 16:25:59 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-08-08 16:25:59 +0300
commitc6e47e8a5139cccdd51a6c68e112e28b73adaddd (patch)
treedf14c63255cdc6e0d379aaa1899dfc991534c796 /core/Controller
parent6b1ba9cdaf3ce5d63e6e46bcbc677cf7933f5fb3 (diff)
Fix login redirection if only one 2FA provider is active
Fixes https://github.com/nextcloud/server/issues/10500. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/LoginController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php
index 5bd06ac7e66..9d6f8aed88e 100644
--- a/core/Controller/LoginController.php
+++ b/core/Controller/LoginController.php
@@ -334,7 +334,7 @@ class LoginController extends Controller {
if ($this->twoFactorManager->isTwoFactorAuthenticated($loginResult)) {
$this->twoFactorManager->prepareTwoFactorLogin($loginResult, $remember_login);
- $providers = $this->twoFactorManager->getProviderSet($loginResult)->getProviders();
+ $providers = $this->twoFactorManager->getProviderSet($loginResult)->get3rdPartyProviders();
if (count($providers) === 1) {
// Single provider, hence we can redirect to that provider's challenge page directly
/* @var $provider IProvider */