public IActionResult createSession() { Captcha captcha = _draw.DrawsCaptcha(); var sessionKey = _context.createSession(captcha, HttpContext.Request.Headers["Api-Key"]); return(Ok(new CaptchaDTO() { SessionKey = sessionKey, Image = captcha.Image })); }
public IActionResult GenerateCaptcha() { var captcha = _draw.DrawsCaptcha(); var res = _context.createSession(captcha, _configuration["Keys:Api-Key"]); return(Ok(new CaptchaDTO() { SessionKey = res, Image = captcha.Image })); }