summaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication/TwoFactorAuth/Registry.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Authentication/TwoFactorAuth/Registry.php')
-rw-r--r--lib/private/Authentication/TwoFactorAuth/Registry.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/Authentication/TwoFactorAuth/Registry.php b/lib/private/Authentication/TwoFactorAuth/Registry.php
index 151299b28e3..97df2bd5311 100644
--- a/lib/private/Authentication/TwoFactorAuth/Registry.php
+++ b/lib/private/Authentication/TwoFactorAuth/Registry.php
@@ -66,6 +66,13 @@ class Registry implements IRegistry {
$this->dispatcher->dispatch(self::EVENT_PROVIDER_DISABLED, $event);
}
+ /**
+ * @todo evaluate if we should emit RegistryEvents for each of the deleted rows -> needs documentation
+ */
+ public function deleteUserData(IUser $user): void {
+ $this->assignmentDao->deleteByUser($user->getUID());
+ }
+
public function cleanUp(string $providerId) {
$this->assignmentDao->deleteAll($providerId);
}