diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-05-16 09:37:21 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-05-18 22:10:57 +0200 |
commit | 0928b5f621c42b2675fd877417e02dfc18b4e82b (patch) | |
tree | a4578de8557471c047f6017500cc1c0ffc797aca /settings/Application.php | |
parent | 879e11e7d1d9802647ade392f4ae317952bc6f8f (diff) | |
download | nextcloud-server-0928b5f621c42b2675fd877417e02dfc18b4e82b.tar.gz nextcloud-server-0928b5f621c42b2675fd877417e02dfc18b4e82b.zip |
Change 2FA activities to more generic security activities
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'settings/Application.php')
-rw-r--r-- | settings/Application.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/settings/Application.php b/settings/Application.php index 0ca2d28dfe6..f79453e3d01 100644 --- a/settings/Application.php +++ b/settings/Application.php @@ -34,6 +34,9 @@ use OC\AppFramework\Utility\TimeFactory; use OC\Authentication\Token\IProvider; use OC\Server; use OC\Settings\Activity\Provider; +use OC\Settings\Activity\SecurityFilter; +use OC\Settings\Activity\SecurityProvider; +use OC\Settings\Activity\SecuritySetting; use OC\Settings\Activity\Setting; use OC\Settings\Mailer\NewUserMailHelper; use OC\Settings\Middleware\SubadminMiddleware; @@ -114,6 +117,9 @@ class Application extends App { $activityManager = $this->getContainer()->getServer()->getActivityManager(); $activityManager->registerSetting(Setting::class); // FIXME move to info.xml $activityManager->registerProvider(Provider::class); // FIXME move to info.xml + $activityManager->registerFilter(SecurityFilter::class); // FIXME move to info.xml + $activityManager->registerSetting(SecuritySetting::class); // FIXME move to info.xml + $activityManager->registerProvider(SecurityProvider::class); // FIXME move to info.xml Util::connectHook('OC_User', 'post_setPassword', $this, 'onChangePassword'); Util::connectHook('OC_User', 'changeUser', $this, 'onChangeInfo'); |