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

Commit

Permalink
Fixing Redirect in Authentication middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
amoshaviv committed Sep 7, 2013
1 parent f5cbb58 commit 3a329dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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('/');
return res.redirect('/signin');
}
next();
};
Expand Down

0 comments on commit 3a329dc

Please sign in to comment.