mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
Fix setting up 2FA providers when 2FA is enforced and bc are generated
When a user has backup codes generated and got their 2FA enforced then they should be able to set up TOTP and similar providers during the login. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
904a762de7
commit
2fca843cc0
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue