blob: 6726f8b86de37d48af3d1bdcdb4ff0b72bbbec3c (
plain) (
tree)
|
|
// AUTH Middleware. This is what checks if you are logged in.
/*
* Generic require login routing
*/
exports.requiresLogin = function(req, res, next) {
if (!req.isAuthenticated()) return res.redirect('/');
next();
}
|