Beispiel #1
0
        public IActionResult CreateToken()
        {
            var captcha = _captchaService.CreateCaptcha(new CaptchaOptions()
            {
                ImgWidth        = 216,
                ImgHeight       = 96,
                MinCharsLength  = 5,
                MaxCharsLength  = 10,
                BackgroundColor = "#fff",
                FontColor       = "#337ab7"
            });

            return(Json(captcha.Id));
        }