%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/workflow/src/middleware/
Upload File :
Create Path :
Current File : /home/opti/workflow/src/middleware/login.js

module.exports = function (req, res, next) {

    // if user is authenticated in the session, carry on
    if (req.isAuthenticated()) {
        return next();
    }
        // if they aren't redirect them to the home page
    // req.session.backURL = req.header('Referer') || '/';
    res.redirect('/login');
}

Zerion Mini Shell 1.0