From 01c22e42ecff1acbdbfdcf50e677a60c78f6720c Mon Sep 17 00:00:00 2001 From: Jon-Biz Date: Fri, 6 Sep 2013 15:23:44 -0700 Subject: [PATCH] Updated authorization.js redirect The authorization.js redirect here sends people to '/login', which doesn't exist. I changed this to point to '/'. --- config/middlewares/authorization.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/middlewares/authorization.js b/config/middlewares/authorization.js index 42e89a69..7bc66c6a 100755 --- a/config/middlewares/authorization.js +++ b/config/middlewares/authorization.js @@ -3,7 +3,7 @@ */ exports.requiresLogin = function(req, res, next) { if (!req.isAuthenticated()) { - return res.redirect('/login'); + return res.redirect('/'); } next(); }; @@ -30,4 +30,4 @@ exports.article = { } next(); } -}; \ No newline at end of file +};