Esempio n. 1
0
        public ActionResult GetValidateImage(string key)
        {
            var code = ValidateHelper.GenerateCode();

            ValidateHelper.Cache(key, code);

            var bytes = ValidateHelper.GenerateImage(code, 80, 28);

            return(File(bytes, "image/png"));
        }