From 367078056e89666b05aae60f0c518160bb735162 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 11 Jan 2017 14:41:31 +0300 Subject: [PATCH] add hook --- src/user/profile.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/user/profile.js b/src/user/profile.js index 01caa931cf..c25dd3bf83 100644 --- a/src/user/profile.js +++ b/src/user/profile.js @@ -63,6 +63,7 @@ module.exports = function (User) { }, next); }, function (next) { + plugins.fireHook('action:user.updateProfile', {uid: uid, data: data, fields: fields, oldData: oldData}); User.getUserFields(updateUid, ['email', 'username', 'userslug', 'picture', 'icon:text', 'icon:bgColor'], next); } ], callback);