summaryrefslogtreecommitdiffstats
path: root/lib/public/Authentication/TwoFactorAuth/IRegistry.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Authentication/TwoFactorAuth/IRegistry.php')
-rw-r--r--lib/public/Authentication/TwoFactorAuth/IRegistry.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/public/Authentication/TwoFactorAuth/IRegistry.php b/lib/public/Authentication/TwoFactorAuth/IRegistry.php
index 5013892d402..5d97c57bcf2 100644
--- a/lib/public/Authentication/TwoFactorAuth/IRegistry.php
+++ b/lib/public/Authentication/TwoFactorAuth/IRegistry.php
@@ -62,4 +62,19 @@ interface IRegistry {
* @since 14.0.0
*/
public function disableProviderFor(IProvider $provider, IUser $user);
+
+ /**
+ * Cleans up all entries of the provider with the given id. This is only
+ * necessary in edge-cases where an admin disabled and/or uninstalled a
+ * provider app. Invoking this method will make sure outdated provider
+ * associations are removed so that users can log in.
+ *
+ * @since 15.0.0
+ *
+ * @param string $providerId
+ *
+ * @return void
+ */
+ public function cleanUp(string $providerId);
+
}