Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Updated authorization.js redirect
Browse files Browse the repository at this point in the history
The authorization.js redirect here sends people to '/login', which doesn't exist. I changed this to point to '/'.
  • Loading branch information
Jon-Biz committed Sep 6, 2013
1 parent 39db681 commit 01c22e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/middlewares/authorization.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
exports.requiresLogin = function(req, res, next) {
if (!req.isAuthenticated()) {
return res.redirect('/login');
return res.redirect('/');
}
next();
};
Expand All @@ -30,4 +30,4 @@ exports.article = {
}
next();
}
};
};

0 comments on commit 01c22e4

Please sign in to comment.