diff options
Diffstat (limited to 'middlewares/requireAuth.js')
-rw-r--r-- | middlewares/requireAuth.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/middlewares/requireAuth.js b/middlewares/requireAuth.js index 1ea6deb..4d85e43 100644 --- a/middlewares/requireAuth.js +++ b/middlewares/requireAuth.js @@ -2,7 +2,7 @@ function requireAuth(req, res, next) { if (req.session.user !== undefined) { return next(); } - return res.redirect(302, "/login"); + return res.redirect(302, '/login'); } export default requireAuth; |