aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/config/middlewares/authorization.js
blob: b881a3d6fae3207e6fe56ca6128f2229ee1483d6 (plain) (tree)
1
2
3
4
5
6
7
8






                                                  
                                                         




           


/*
 * Generic require login routing
 */

exports.requiresLogin = function(req, res, next) {
    if (!req.isAuthenticated()) return res.redirect('/');
    next();
}