aboutsummaryrefslogtreecommitdiffstats
path: root/core/Application.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-06-15 16:09:39 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-06-15 19:24:04 +0200
commit3474afa9381e587e45c43a84079cae28c05a3433 (patch)
treed26a7c3c56249c74c63f901a7f8f35d299c75ce0 /core/Application.php
parent2d262a1a032d5e603905fb3aba7744ef0a98cf86 (diff)
downloadnextcloud-server-3474afa9381e587e45c43a84079cae28c05a3433.tar.gz
nextcloud-server-3474afa9381e587e45c43a84079cae28c05a3433.zip
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.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Application.php b/core/Application.php
index 217b6ac41e9..ccfad5c18df 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -36,6 +36,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\MissingColumnInformation;
@@ -197,5 +198,6 @@ 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);
}
}