mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-17 01:15:05 +03:00
Akif9748
ae83e014a0
The dublicate key error fixed, ids as string. classes removed. using mongoose's magic
4 lines
No EOL
115 B
JavaScript
4 lines
No EOL
115 B
JavaScript
module.exports = (req, res, next) => {
|
|
if (!req.session.userid) return res.redirect('/login');
|
|
next();
|
|
}
|