Complete passport setup
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user