diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-17 14:50:27 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-25 13:25:09 +0100 |
commit | eddd135f14bc0d5d843b3c0ce7b011b603862ea0 (patch) | |
tree | 729bc8bcf9600308b7ed9b8b7267de257835ec83 /lib/public/Authentication | |
parent | fe88e7f9264e3826e7efeb7144eb8ce0267cefe8 (diff) | |
download | nextcloud-server-eddd135f14bc0d5d843b3c0ce7b011b603862ea0.tar.gz nextcloud-server-eddd135f14bc0d5d843b3c0ce7b011b603862ea0.zip |
Dispatch event on twofactor failure and success
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/Authentication')
-rw-r--r-- | lib/public/Authentication/TwoFactorAuth/IProvider.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/public/Authentication/TwoFactorAuth/IProvider.php b/lib/public/Authentication/TwoFactorAuth/IProvider.php index 51b126426c3..c4c481a2f32 100644 --- a/lib/public/Authentication/TwoFactorAuth/IProvider.php +++ b/lib/public/Authentication/TwoFactorAuth/IProvider.php @@ -31,6 +31,12 @@ use OCP\Template; interface IProvider { /** + * @since 14.0.0 + */ + const EVENT_SUCCESS = self::class . '::success'; + const EVENT_FAILED = self::class . '::failed'; + + /** * Get unique identifier of this 2FA provider * * @since 9.1.0 |