summaryrefslogtreecommitdiffstats
path: root/lib/private/Server.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-04-13 12:34:02 +0200
committerJoas Schilling <coding@schilljs.com>2017-04-13 12:34:02 +0200
commit1110b51aa3c7627855d775e6122cb27553118944 (patch)
treeab33c1f8607279c3e6aee2f56c78baa631cc03fc /lib/private/Server.php
parent0eb08a510b7393da0067750e01cdae8a4d1d009a (diff)
downloadnextcloud-server-1110b51aa3c7627855d775e6122cb27553118944.tar.gz
nextcloud-server-1110b51aa3c7627855d775e6122cb27553118944.zip
Allow to read the old email on the hook as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r--lib/private/Server.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 00698a04f89..43cc62296a6 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;
});