Skip to content

Commit

Permalink
Fixing a typo in the csrf wrapper within utility.auth()
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Jan 1, 2018
1 parent ad7e05f commit b39ee8e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function auth (obj, config) {
passportAuth, passportInit, passportSession;

function csrfWrapper (req, res, next) {
if (req.unprotec === true) {
if (req.unprotect === true) {
next();
} else {
luscaCsrf(req, res, next);
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tenso",
"description": "Tensō is an elastic REST API gateway for node.js",
"version": "6.3.1",
"version": "6.3.2",
"homepage": "http://avoidwork.github.io/tenso",
"author": "Jason Mulligan <[email protected]>",
"repository": {
Expand Down

0 comments on commit b39ee8e

Please sign in to comment.