mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00:00
Merge pull request #28262 from nextcloud/fix/set-up-2fa-providers-enforced-with-backup-codes
Fix setting up 2FA providers when 2FA is enforced and bc are generated
This commit is contained in:
commit
98ad69fec2
@ -92,7 +92,7 @@ class TwoFactorMiddleware extends Middleware {
|
||||
&& !$this->reflector->hasAnnotation('TwoFactorSetUpDoneRequired')) {
|
||||
$providers = $this->twoFactorManager->getProviderSet($this->userSession->getUser());
|
||||
|
||||
if (!($providers->getProviders() === [] && !$providers->isProviderMissing())) {
|
||||
if (!($providers->getPrimaryProviders() === [] && !$providers->isProviderMissing())) {
|
||||
throw new TwoFactorAuthRequiredException();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user