mirror of
https://github.com/nextcloud/server.git
synced 2026-02-11 14:54:02 -05:00
Merge pull request #30252 from nextcloud/backport/30193/stable23
[stable23] Fix setting up 2FA when no providers are set up but backup codes
This commit is contained in:
commit
cdedd2df38
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,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