示例#1
0
        public ActionResult Index(string c1, string c2)
        {
            var isCaptcha1Valid = CaptchaManager.ValidateCurrentCaptcha("c1", c1);
            var isCaptcha2Valid = CaptchaManager.ValidateCurrentCaptcha("c2", c2);

            ViewBag.c1 = isCaptcha1Valid;
            ViewBag.c2 = isCaptcha2Valid;
            return(View());
        }
示例#2
0
        public ActionResult Index(string c1)
        {
            if (string.IsNullOrEmpty(c1))
            {
                ViewBag.c1 = false;
                return(View());
            }
            var isCaptcha1Valid = CaptchaManager.ValidateCurrentCaptcha("c1", c1);

            ViewBag.c1 = isCaptcha1Valid;
            return(View());
        }