diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-01-09 11:34:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-09 11:34:05 +0100 |
commit | 1437c21d51c8f72a31eb341a45ea38048a15f6f1 (patch) | |
tree | e58e7822353942fe7861e086d246649734a7cd14 /core | |
parent | 601718b2d67df569872dcdba18cf83204d51bc14 (diff) | |
parent | 60d4b45e8924b2d8ccc2326a1f463ee9dae32905 (diff) | |
download | nextcloud-server-1437c21d51c8f72a31eb341a45ea38048a15f6f1.tar.gz nextcloud-server-1437c21d51c8f72a31eb341a45ea38048a15f6f1.zip |
Merge pull request #18738 from nextcloud/fix/clean-up-provider-registry-user-delete
Clean up 2FA provider registry when a user is deleted
Diffstat (limited to 'core')
-rw-r--r-- | core/Application.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Application.php b/core/Application.php index 06b8a6fedec..879ac1cff74 100644 --- a/core/Application.php +++ b/core/Application.php @@ -36,6 +36,7 @@ use OC\Authentication\Events\RemoteWipeStarted; use OC\Authentication\Listeners\RemoteWipeActivityListener; use OC\Authentication\Listeners\RemoteWipeEmailListener; use OC\Authentication\Listeners\RemoteWipeNotificationsListener; +use OC\Authentication\Listeners\UserDeletedStoreCleanupListener; use OC\Authentication\Notifications\Notifier as AuthenticationNotifier; use OC\Core\Notification\RemoveLinkSharesNotifier; use OC\DB\MissingIndexInformation; @@ -44,6 +45,7 @@ use OCP\AppFramework\App; use OCP\EventDispatcher\IEventDispatcher; use OCP\IDBConnection; use OCP\IServerContainer; +use OCP\User\Events\UserDeletedEvent; use OCP\Util; use Symfony\Component\EventDispatcher\GenericEvent; @@ -172,6 +174,7 @@ class Application extends App { $eventDispatcher->addServiceListener(RemoteWipeFinished::class, RemoteWipeActivityListener::class); $eventDispatcher->addServiceListener(RemoteWipeFinished::class, RemoteWipeNotificationsListener::class); $eventDispatcher->addServiceListener(RemoteWipeFinished::class, RemoteWipeEmailListener::class); + $eventDispatcher->addServiceListener(UserDeletedEvent::class, UserDeletedStoreCleanupListener::class); } } |