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

Commit

Permalink
Merge pull request #60 from Jon-Biz/patch-1
Browse files Browse the repository at this point in the history
Updated authorization.js redirect
  • Loading branch information
amoshaviv committed Sep 7, 2013
2 parents f65e7bd + 01c22e4 commit f5cbb58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/middlewares/authorization.js
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 f5cbb58

Please sign in to comment.