Skip to content

Node.js based forum software built for the modern web

fix username change event log

barisusakli652e247d1bc7
diff --git a/src/user/profile.js b/src/user/profile.js
index 461f1d9bb8..829c143505 100644
--- a/src/user/profile.js
+++ b/src/user/profile.js
@@ -100,7 +100,7 @@ module.exports = function(User) {
return callback(err);
}
plugins.fireHook('action:user.updateProfile', {data: data, uid: uid});
- User.getUserFields(uid, ['email', 'userslug', 'picture', 'gravatarpicture'], callback);
+ User.getUserFields(uid, ['email', 'username', 'userslug', 'picture', 'gravatarpicture'], callback);
});
});