diff options
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index 7f5afd9a66c..7bd14de56b6 100644 --- a/lib/base.php +++ b/lib/base.php @@ -757,6 +757,7 @@ class OC { self::registerLogRotate(); self::registerEncryptionWrapper(); self::registerEncryptionHooks(); + self::registerAccountHooks(); self::registerSettingsHooks(); //make sure temporary files are cleaned up @@ -867,6 +868,11 @@ class OC { } } + private static function registerAccountHooks() { + $hookHandler = new \OC\Accounts\Hooks(\OC::$server->getLogger()); + \OCP\Util::connectHook('OC_User', 'changeUser', $hookHandler, 'changeUserHook'); + } + /** * register hooks for the cache */ |