aboutsummaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-11-25 11:40:20 +0100
committerGitHub <noreply@github.com>2016-11-25 11:40:20 +0100
commit64fb0fb3dd02fe9fd5f4543e7248137b7e9fcbcd (patch)
tree03c70a33e480b312451a72a08cdb286fcfdb2216 /lib/base.php
parent1967b9112c237f8ed825d3fc664edf96e97f9514 (diff)
parent0de685c5629deb66984e536e5fd20f140228aa3f (diff)
downloadnextcloud-server-64fb0fb3dd02fe9fd5f4543e7248137b7e9fcbcd.tar.gz
nextcloud-server-64fb0fb3dd02fe9fd5f4543e7248137b7e9fcbcd.zip
Merge pull request #2276 from nextcloud/update-email-address
Update email address
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 2f5517f4614..00e984d80c5 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -766,6 +766,7 @@ class OC {
self::registerLogRotate();
self::registerEncryptionWrapper();
self::registerEncryptionHooks();
+ self::registerAccountHooks();
self::registerSettingsHooks();
//make sure temporary files are cleaned up
@@ -876,6 +877,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
*/