Пример #1
0
        /// <summary>
        /// 获取验证码图片
        /// </summary>
        /// <returns></returns>
        public ActionResult ValidateCodeImg()
        {
            var Code = ValidateCodeHelper.GetRandomCode(7);

            ValidateCodeHelper.SetCodeString(Code);
            return(File(ValidateCodeHelper.GetVerifyCodeImg(Code), "image/Jpeg"));
        }