Exemplo n.º 1
0
        public ResponseResult <string> ImageCode(int codeLength = 4, int codeW = 80, int codeH = 22)
        {
            var res = ImgCodeHelper.Generate(codeLength, codeW, codeH);

            ContextHelper.WriteSession(Constant.UserImgCodeKey, res.ImgCode);
            return(res.FullImgBase64.Success());
        }
 public JsonResult ImgApi()
 {
     ImgCodeHelper._Interface().ValidateImg(ConstantConfig.KEY);
     return(Json(""));
 }