|
|
|
@ -18,7 +18,8 @@ infoController.get = function(req, res, next) {
|
|
|
|
|
async.parallel({
|
|
|
|
|
ips: async.apply(user.getIPs, res.locals.uid, 4),
|
|
|
|
|
history: async.apply(user.getModerationHistory, res.locals.uid),
|
|
|
|
|
fields: async.apply(user.getUserFields, res.locals.uid, ['banned'])
|
|
|
|
|
fields: async.apply(user.getUserFields, res.locals.uid, ['banned']),
|
|
|
|
|
sessions: async.apply(user.auth.getSessions, userData.uid, req.sessionID)
|
|
|
|
|
}, function(err, data) {
|
|
|
|
|
if (err) {
|
|
|
|
|
return next(err);
|
|
|
|
@ -28,7 +29,8 @@ infoController.get = function(req, res, next) {
|
|
|
|
|
ips: data.ips,
|
|
|
|
|
history: data.history
|
|
|
|
|
}, data.fields);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
userData.sessions = data.sessions;
|
|
|
|
|
userData.title = '[[pages:account/info]]';
|
|
|
|
|
userData.breadcrumbs = helpers.buildBreadcrumbs([{text: userData.username, url: '/user/' + userData.userslug}, {text: '[[user:account_info]]'}]);
|
|
|
|
|
|
|
|
|
|