code: function redirectToLoginOnBadRecaptcha(req, res, next) {
      if (!req.requireRecaptcha || req.isValidRecaptcha.success) {
          next();
      } else {
          req.session.error = 'Authentication failed. Bad captcha';
          loginBruteForce.ban(req);
          res.redirect('login');
      }
  }
docs: /*
  Just a simple middleware to redirect bad