diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-21 00:07:46 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-21 00:07:46 +0100 |
commit | 2f7dcf1a2c7fb133c8ab7827a412dec2e205ac79 (patch) | |
tree | b0a88f6fdbe34111c10909740e133f758267d984 /settings | |
parent | 647d8ea5decad8140f9c280ae90039aa71c4eb93 (diff) | |
parent | 77069f5582ad42207ee9a9620cba5720390d9e79 (diff) | |
download | nextcloud-server-2f7dcf1a2c7fb133c8ab7827a412dec2e205ac79.tar.gz nextcloud-server-2f7dcf1a2c7fb133c8ab7827a412dec2e205ac79.zip |
Merge pull request #21782 from owncloud/update-system-addressbook-on-user-change-2
Introduce IUser::setEMailAddress and add hook mechanism
Diffstat (limited to 'settings')
-rw-r--r-- | settings/controller/userscontroller.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/settings/controller/userscontroller.php b/settings/controller/userscontroller.php index 695d72cfb5a..17629fe924f 100644 --- a/settings/controller/userscontroller.php +++ b/settings/controller/userscontroller.php @@ -373,7 +373,7 @@ class UsersController extends Controller { * Send new user mail only if a mail is set */ if($email !== '') { - $this->config->setUserValue($username, 'settings', 'email', $email); + $user->setEMailAddress($email); // data for the mail template $mailData = array( @@ -545,11 +545,7 @@ class UsersController extends Controller { } // delete user value if email address is empty - if($mailAddress === '') { - $this->config->deleteUserValue($id, 'settings', 'email'); - } else { - $this->config->setUserValue($id, 'settings', 'email', $mailAddress); - } + $user->setEMailAddress($mailAddress); return new DataResponse( array( |