diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-18 20:27:43 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-20 14:57:20 +0100 |
commit | aeb89947a2bddb1db10426538afaccdc141c059e (patch) | |
tree | 4cd9bada02f0c7d4c944d5b83160f2d8e2bf831b /lib/private/server.php | |
parent | dd733d89256e0a2d1f7f4f96ac46b5a7bfbff984 (diff) | |
download | nextcloud-server-aeb89947a2bddb1db10426538afaccdc141c059e.tar.gz nextcloud-server-aeb89947a2bddb1db10426538afaccdc141c059e.zip |
Introduce IUser::setEMailAddress and add hook mechanism
Diffstat (limited to 'lib/private/server.php')
-rw-r--r-- | lib/private/server.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/server.php b/lib/private/server.php index 642267e8568..db36fbc1433 100644 --- a/lib/private/server.php +++ b/lib/private/server.php @@ -229,6 +229,10 @@ class Server extends ServerContainer implements IServerContainer { $userSession->listen('\OC\User', 'logout', function () { \OC_Hook::emit('OC_User', 'logout', array()); }); + $userSession->listen('\OC\User', 'changeUser', function ($user) { + /** @var $user \OC\User\User */ + \OC_Hook::emit('OC_User', 'changeUser', array('run' => true, 'user' => $user)); + }); return $userSession; }); $this->registerService('NavigationManager', function ($c) { |