Merge pull request #756 from nextcloud/twofactor-isset-10
[10] Check if an app provide two-factor-auth providers before we try to use them
This commit is contained in:
commit
65dd174655
|
@ -109,6 +109,7 @@ class Manager {
|
|||
|
||||
foreach ($allApps as $appId) {
|
||||
$info = $this->appManager->getAppInfo($appId);
|
||||
if (isset($info['two-factor-providers'])) {
|
||||
$providerClasses = $info['two-factor-providers'];
|
||||
foreach ($providerClasses as $class) {
|
||||
try {
|
||||
|
@ -121,6 +122,7 @@ class Manager {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return array_filter($providers, function ($provider) use ($user) {
|
||||
/* @var $provider IProvider */
|
||||
|
|
Loading…
Reference in New Issue