|
|
@@ -100,8 +100,12 @@ module.exports = function(crowi, app) {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
- actions.index = function(req, res) {
|
|
|
- return res.render('me/index');
|
|
|
+ actions.index = async function(req, res) {
|
|
|
+ const User = crowi.model('User');
|
|
|
+ const userData = await User.findById(req.user.id).populate({ path: 'imageAttachment', select: 'filePathProxied' });
|
|
|
+ const renderVars = {};
|
|
|
+ renderVars.user = userData;
|
|
|
+ return res.render('me/index', renderVars);
|
|
|
};
|
|
|
|
|
|
actions.externalAccounts = {};
|