Пример #1
0
        public ActionResult HBackPassword(string TelPhone, string newPassword, string yzm)
        {
            bool   IsSubmit  = true;
            string CheckCode = Session["ValidatorCode"].ToString();

            if (Session["ValidatorCode"] == null || CheckCode != yzm)
            {
                IsSubmit = false;
            }
            if (IsSubmit == true)
            {
                bool IsBack = USer.BackPassword(TelPhone, newPassword);
                Guid UserId = Guid.Empty;
                if (IsBack == true)
                {
                    return(Content("1"));
                }
                else
                {
                    return(Content("0"));
                }
            }
            else
            {
                return(Content("0"));
            }
        }