diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-12-07 19:14:33 +0300 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2017-12-07 19:14:33 +0300 |
commit | d34e216e9d7ebe1a61d9d6839e91dc93138a0cce (patch) | |
tree | 5f1813cb45535cbeedcfb1909fa958b45df6f312 /lib | |
parent | 28201b713c276b81634a1877900856ec1dfb9c6a (diff) |
update the display name in accounts table
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/UserBackend.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/UserBackend.php b/lib/UserBackend.php index 1eb8ac6a..b6c389d6 100644 --- a/lib/UserBackend.php +++ b/lib/UserBackend.php @@ -465,6 +465,13 @@ class UserBackend implements IApacheBackend, UserInterface, IUserBackend { $currentDisplayname = (string)$this->getDisplayName($uid); if($newDisplayname !== null && $currentDisplayname !== $newDisplayname) { + \OC_Hook::emit('OC_User', 'changeUser', + [ + 'user' => $user, + 'feature' => 'displayName', + 'value' => $newDisplayname + ] + ); $this->setDisplayName($uid, $newDisplayname); } } |