diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-06-15 17:09:39 +0300 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-06-18 16:32:24 +0300 |
commit | 8e3d47a215fb2e3f2915e90046b86a947d975284 (patch) | |
tree | eae1038245d7db7394e9039b25857f5bf0cf9c8a /core/Application.php | |
parent | a02a22b423de965caf10b5f44970354b29d401b0 (diff) |
Clean up auth tokens when user is deleted
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/Application.php')
-rw-r--r-- | core/Application.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Application.php b/core/Application.php index 879ac1cff74..b0a86b40a88 100644 --- a/core/Application.php +++ b/core/Application.php @@ -37,6 +37,7 @@ use OC\Authentication\Listeners\RemoteWipeActivityListener; use OC\Authentication\Listeners\RemoteWipeEmailListener; use OC\Authentication\Listeners\RemoteWipeNotificationsListener; use OC\Authentication\Listeners\UserDeletedStoreCleanupListener; +use OC\Authentication\Listeners\UserDeletedTokenCleanupListener; use OC\Authentication\Notifications\Notifier as AuthenticationNotifier; use OC\Core\Notification\RemoveLinkSharesNotifier; use OC\DB\MissingIndexInformation; @@ -175,6 +176,7 @@ class Application extends App { $eventDispatcher->addServiceListener(RemoteWipeFinished::class, RemoteWipeNotificationsListener::class); $eventDispatcher->addServiceListener(RemoteWipeFinished::class, RemoteWipeEmailListener::class); $eventDispatcher->addServiceListener(UserDeletedEvent::class, UserDeletedStoreCleanupListener::class); + $eventDispatcher->addServiceListener(UserDeletedEvent::class, UserDeletedTokenCleanupListener::class); } } |