added next() to middleware
This commit is contained in:
parent
4209822c74
commit
1e80da99a8
|
@ -1,3 +1,4 @@
|
|||
module.exports = (req, res) => {
|
||||
module.exports = (req, res,next) => {
|
||||
if (!req.session.loggedin) return res.redirect('/login');
|
||||
next();
|
||||
}
|
Loading…
Reference in New Issue