aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/config/middlewares/authorization.js
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-04-29 09:52:09 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-04-29 09:52:09 +0200
commit9ad158b0ade8611ac42043e9e0e3dfe993e00ad8 (patch)
treed66938f9cb7325a1dcf69510350e54bc2be9b1b4 /config/middlewares/authorization.js
parentfixed small typo-bug (diff)
downloadDivid-9ad158b0ade8611ac42043e9e0e3dfe993e00ad8.tar.gz
sends to /test temporarily
Diffstat (limited to '')
-rw-r--r--config/middlewares/authorization.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/middlewares/authorization.js b/config/middlewares/authorization.js
index 440f085..8d822f0 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('/login');
+ if (!req.isAuthenticated()) return res.redirect('/test');
next();
}