public CaptchaResponse HandleCaptcha(Captcha captcha) { _logger.Warning($"Captcha was raised with ID: {captcha.Id} found at {captcha.Url}", captcha); // Returning an empty response cancels the captcha return new CaptchaResponse(); }
public CaptchaResponse HandleCaptcha(Captcha captcha) { Console.WriteLine("Captcha required! The captcha ID is {0}", captcha.Id); Console.WriteLine("You can find the captcha image at this url: {0}", captcha.Url); Console.WriteLine("Please input your captcha response or empty string to cancel:"); var response = Console.ReadLine(); CaptchaResponse captchaResponse = new CaptchaResponse(string.IsNullOrEmpty(response) ? null : response); return captchaResponse; }
public CaptchaResponse HandleCaptcha(Captcha captcha) { return new CaptchaResponse(); }