pdupavillon/express-recaptcha

Error in documentation for verification without middleware

sylbal opened this issue · 1 comments

The documentation states

app.post('/', function(req, res){
  recaptcha.verify(req, function(error, data){
    if (!req.recaptcha.error) {
      // success code
    } else {
      // error code
    }
  });
});

I believe it should be

app.post('/', function(req, res){
  recaptcha.verify(req, function(error, data){
    if (!rerror) {
      // success code
    } else {
      // error code
    }
  });
});

addressed in PR #54 thanks