Complete passport setup

This commit is contained in:
Ben Ramey
2014-06-10 19:42:23 -05:00
parent 4915ad3233
commit fc9b789ad8
4 changed files with 65 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ module.exports = function(req, res, next) {
// User is allowed, proceed to the next policy,
// or if this is the last policy, the controller
if (req.session.authenticated) {
if (req.isAuthenticated()) {
return next();
}