mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 02:34:12 -04:00
Merge branch 'stable20' of github.com:nextcloud/server into stable20
This commit is contained in:
commit
c638ebd7a5
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,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