Updated authorization.js redirect

The authorization.js redirect here sends people to '/login', which doesn't exist. I changed this to point to '/'.
This commit is contained in:
Jon-Biz
2013-09-06 15:23:44 -07:00
parent 39db68138a
commit 01c22e42ec

View File

@@ -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();
}
};
};