summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2016-06-13 12:46:45 +0200
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-06-13 12:46:45 +0200
commit5daa9a5417b896246f9c67feca6d39ea9a96b551 (patch)
tree83efebdd35583264dd010f6f1f6b17e196b3a2b3 /lib
parentf7c41fa4e68d50cc8332818d2e72fc95924ef90c (diff)
downloadnextcloud-server-5daa9a5417b896246f9c67feca6d39ea9a96b551.tar.gz
nextcloud-server-5daa9a5417b896246f9c67feca6d39ea9a96b551.zip
fail hard if 2fa provider can not be loaded (#25061)
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Authentication/TwoFactorAuth/Manager.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Authentication/TwoFactorAuth/Manager.php b/lib/private/Authentication/TwoFactorAuth/Manager.php
index 2b2924e7f14..805735bd1b8 100644
--- a/lib/private/Authentication/TwoFactorAuth/Manager.php
+++ b/lib/private/Authentication/TwoFactorAuth/Manager.php
@@ -21,6 +21,7 @@
namespace OC\Authentication\TwoFactorAuth;
+use Exception;
use OC;
use OC\App\AppManager;
use OCP\AppFramework\QueryException;
@@ -112,7 +113,8 @@ class Manager {
$provider = OC::$server->query($class);
$providers[$provider->getId()] = $provider;
} catch (QueryException $exc) {
- // Provider class can not be resolved, ignore it
+ // Provider class can not be resolved
+ throw new Exception("Could not load two-factor auth provider $class");
}
}
}