mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-05 02:23:42 +02:00
update the display name in accounts table
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
28201b713c
commit
d34e216e9d
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue