summaryrefslogtreecommitdiffstats
path: root/core/Application.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Application.php')
-rw-r--r--core/Application.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/core/Application.php b/core/Application.php
index f89b7e48081..967e3a62c1e 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -28,6 +28,7 @@
namespace OC\Core;
+use OC\Authentication\Notifications\Notifier as AuthenticationNotifier;
use OC\Core\Notification\RemoveLinkSharesNotifier;
use OC\DB\MissingIndexInformation;
use OC\DB\SchemaWrapper;
@@ -60,12 +61,20 @@ class Application extends App {
return new RemoveLinkSharesNotifier(
$server->getL10NFactory()
);
- }, function() use ($server) {
+ }, function() {
return [
'id' => 'core',
'name' => 'core',
];
});
+ $notificationManager->registerNotifier(function() use ($server) {
+ return $server->query(AuthenticationNotifier::class);
+ }, function() {
+ return [
+ 'id' => 'auth',
+ 'name' => 'authentication notifier',
+ ];
+ });
$eventDispatcher->addListener(IDBConnection::CHECK_MISSING_INDEXES_EVENT,
function(GenericEvent $event) use ($container) {