public IActionResult GetCaptchaImage([FromServices] ISessionBasedCaptcha captcha) { var s = captcha.GenerateCaptchaImageFileStream(HttpContext.Session, AppSettings.CaptchaSettings.ImageWidth, AppSettings.CaptchaSettings.ImageHeight); return(s); }
public IActionResult GetCaptchaImage() { var s = _captcha.GenerateCaptchaImageFileStream(HttpContext.Session, AppSettings.CaptchaSettings.ImageWidth, AppSettings.CaptchaSettings.ImageHeight); return(s); }
public IActionResult GetCaptchaImage() { var s = _captcha.GenerateCaptchaImageFileStream( HttpContext.Session, 100, 36 ); return(s); }
public IActionResult GetCaptchaImage([FromServices] ISessionBasedCaptcha captcha) { var w = AppSettings.CaptchaSettings.ImageWidth; var h = AppSettings.CaptchaSettings.ImageHeight; // prevent crazy size if (w > 640) { w = 640; } if (h > 480) { h = 480; } var s = captcha.GenerateCaptchaImageFileStream(HttpContext.Session, w, h); return(s); }
public IActionResult GetCaptchaImage() { return(_captcha.GenerateCaptchaImageFileStream(HttpContext.Session, 100, 33)); }