code: function requireRecaptchaAfterTries(number) {
      /*
       * Recaptcha keypair
       * http://www.google.com/recaptcha/whyrecaptcha
       */
      var recaptchaKeys = {
          PUBLIC: '6Ler-9cSAAAAALgxcaiMpgfDb6tL36IvM2dCb7g7',
          PRIVATE: '6Ler-9cSAAAAAMO0RJB39zFvYwLHvykldkml2uWK'
      };
      return function (req, res, next) {
          var badAttempts = req.delayed && req.delayed.counter || -1;
          // Note: We show recaptcha form PRIOr to require it
          if (badAttempts >= number) {
              req.session.recaptchaForm = (new Recaptcha(recaptchaKeys.PUBLIC, recaptchaKeys.PRIVATE)).toHTML();
          }
          if ((req.requireRecaptcha = badAttempts > number)) {
              var data = {
                  remoteip: req.connection.remoteAddress,
                  challenge: req.body.recaptcha_challenge_field,
                  response: req.body.recaptcha_response_field
              },
                  recaptcha = new Recaptcha(recaptchaKeys.PUBLIC, recaptchaKeys.PRIVATE, data);
              recaptcha.verify(function (success, error) {
                  req.isValidRecaptcha = {
                      success: success,
                      error: error
                  };
                  next();
              });
          } else {
              next();
          }
      };
  }
docs: //////////////////////////////////////////////////////////////// Recaptcha integration  We require recaptcha validation after a *number* of bad logins.  ////////////////////////////////////////////////////////////////