Skip to content

Commit

Permalink
Changed csrf(): next(403) to allow error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Oct 2, 2011
1 parent cff9374 commit 524a83d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware/csrf.js
Expand Up @@ -83,7 +83,7 @@ module.exports = function csrf(options) {
var val = value(req);

// check
if (val != token) return utils.forbidden(res);
if (val != token) return next(403);

next();
}
Expand Down

0 comments on commit 524a83d

Please sign in to comment.