diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2016-11-23 21:19:06 +0100 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2016-11-25 10:26:47 +0100 |
commit | 3fc75073b80a3ffedbcd127e9e75edf567f245a5 (patch) | |
tree | ee318005b5c38f1b8ae2e1562371d505a760ffb5 /lib/base.php | |
parent | 546989959c11bc773461cdd8ff0233e3f54255e0 (diff) | |
download | nextcloud-server-3fc75073b80a3ffedbcd127e9e75edf567f245a5.tar.gz nextcloud-server-3fc75073b80a3ffedbcd127e9e75edf567f245a5.zip |
update accounts table if email address or display name changes from outside
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
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 d6c6e17eff9..cad9121da1a 100644 --- a/lib/base.php +++ b/lib/base.php @@ -758,6 +758,7 @@ class OC { self::registerLogRotate(); self::registerEncryptionWrapper(); self::registerEncryptionHooks(); + self::registerAccountHooks(); self::registerSettingsHooks(); //make sure temporary files are cleaned up @@ -868,6 +869,11 @@ class OC { } } + private static function registerAccountHooks() { + $hookHandler = new \OC\Accounts\Hooks(); + \OCP\Util::connectHook('OC_User', 'changeUser', $hookHandler, 'changeUserHook'); + } + /** * register hooks for the cache */ |