bugfixes + cleanup for accounts and users routes

This commit is contained in:
psychobunny
2014-02-28 15:58:29 -05:00
parent fa103b2d6e
commit f35c14ee07
3 changed files with 24 additions and 22 deletions

View File

@@ -164,9 +164,9 @@ accountsController.getAccount = function(req, res, next) {
userData.signature = signature;
if (res.locals.isAPI) {
res.json({});
res.json(userData);
} else {
res.render('account', {});
res.render('account', userData);
};
});
});
@@ -469,6 +469,6 @@ accountsController.uploadPicture = function (req, res, next) {
});
});
});
});
};
module.exports = accountsController;