aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Authentication/TwoFactorAuth/IRegistry.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-09-29 19:03:07 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-10-01 15:35:24 +0200
commita95154642dd6535ebddebef4e6562e777f2094a4 (patch)
tree7c530641b279eef97c6a28538867a5b8cf5379d9 /lib/public/Authentication/TwoFactorAuth/IRegistry.php
parent66970f4c179c480b2f473dd0f17df1b51f4147a2 (diff)
downloadnextcloud-server-a95154642dd6535ebddebef4e6562e777f2094a4.tar.gz
nextcloud-server-a95154642dd6535ebddebef4e6562e777f2094a4.zip
Emit event on enablign or disabling of 2FA provider
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/Authentication/TwoFactorAuth/IRegistry.php')
-rw-r--r--lib/public/Authentication/TwoFactorAuth/IRegistry.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/public/Authentication/TwoFactorAuth/IRegistry.php b/lib/public/Authentication/TwoFactorAuth/IRegistry.php
index 5d97c57bcf2..c033ad91245 100644
--- a/lib/public/Authentication/TwoFactorAuth/IRegistry.php
+++ b/lib/public/Authentication/TwoFactorAuth/IRegistry.php
@@ -39,6 +39,10 @@ use OCP\IUser;
*/
interface IRegistry {
+
+ const EVENT_PROVIDER_ENABLED = self::class . '::enable';
+ const EVENT_PROVIDER_DISABLED = self::class . '::disable';
+
/**
* Get a key-value map of providers and their enabled/disabled state for
* the given user.