mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Merge pull request #30251 from nextcloud/backport/30193/stable21
[stable21] Fix setting up 2FA when no providers are set up but backup codes
This commit is contained in:
commit
a45a9bf860
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ class TwoFactorMiddleware extends Middleware {
|
|||
&& $this->twoFactorManager->needsSecondFactor($this->userSession->getUser())) {
|
||||
$providers = $this->twoFactorManager->getProviderSet($this->userSession->getUser());
|
||||
|
||||
if ($providers->getProviders() === [] && !$providers->isProviderMissing()) {
|
||||
if ($providers->getPrimaryProviders() === [] && !$providers->isProviderMissing()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue