diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-24 16:49:07 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-05-24 16:49:07 +0200 |
commit | f3ec4f487eb96422081c60a9f00b902503bc47de (patch) | |
tree | 23cb5c26ba3aa1eda3a66ed0691adfc667d195d7 /config/middlewares | |
parent | removed a whole bunch of console logswq (diff) | |
download | Divid-f3ec4f487eb96422081c60a9f00b902503bc47de.tar.gz |
no longer redirect to /test on failurewq
Diffstat (limited to 'config/middlewares')
-rw-r--r-- | config/middlewares/authorization.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/middlewares/authorization.js b/config/middlewares/authorization.js index 8d822f0..b881a3d 100644 --- a/config/middlewares/authorization.js +++ b/config/middlewares/authorization.js @@ -5,7 +5,7 @@ */ exports.requiresLogin = function(req, res, next) { - if (!req.isAuthenticated()) return res.redirect('/test'); + if (!req.isAuthenticated()) return res.redirect('/'); next(); } |