diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-04-14 08:16:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-14 08:16:43 +0200 |
commit | f40b9fa9bd03b9c9590976eefa21aba7085f32f2 (patch) | |
tree | 5692c1b28e4db2394dfd92c9d6aa8006d769e076 /lib/private/Server.php | |
parent | 6b79bf09601122f07f006e49459b362548e1b118 (diff) | |
parent | 8e8b345fbdc531c7888ab279a88f52499e5bbb77 (diff) | |
download | nextcloud-server-f40b9fa9bd03b9c9590976eefa21aba7085f32f2.tar.gz nextcloud-server-f40b9fa9bd03b9c9590976eefa21aba7085f32f2.zip |
Merge pull request #4330 from nextcloud/activities-for-password-mail-change
Add activities when email or password is changed
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index 2aa7c15af00..1ee34a57b93 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -343,9 +343,9 @@ 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, $feature, $value) { + $userSession->listen('\OC\User', 'changeUser', function ($user, $feature, $value, $oldValue) { /** @var $user \OC\User\User */ - \OC_Hook::emit('OC_User', 'changeUser', array('run' => true, 'user' => $user, 'feature' => $feature, 'value' => $value)); + \OC_Hook::emit('OC_User', 'changeUser', array('run' => true, 'user' => $user, 'feature' => $feature, 'value' => $value, 'old_value' => $oldValue)); }); return $userSession; }); |