Declared Passport helper middleware so you don't have to explicitly pass user: req.user explicitly to templates

This commit is contained in:
Sahat Yalkabov
2014-01-03 18:19:11 -05:00
parent 85320d216b
commit f660cd5129
5 changed files with 12 additions and 23 deletions

View File

@@ -4,7 +4,6 @@
*/
exports.index = function(req, res) {
res.render('index', {
user: req.user,
title: 'Home'
});
};