mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-10-31 19:25:04 +03:00
added next() to middleware
This commit is contained in:
parent
4209822c74
commit
1e80da99a8
1 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
module.exports = (req, res) => {
|
module.exports = (req, res,next) => {
|
||||||
if (!req.session.loggedin) return res.redirect('/login');
|
if (!req.session.loggedin) return res.redirect('/login');
|
||||||
|
next();
|
||||||
}
|
}
|
Loading…
Reference in a new issue