public void CheckTelVerifyCode(System.Web.HttpContext context)
        {
            string cellphone       = context.Request["cellphone"];
            string phoneVerifyCode = context.Request["CellphoneVerifyCode"].ToLower();
            string selectValue     = context.Request["selectValue"];

            if (selectValue == "1")
            {
                if (string.IsNullOrEmpty(cellphone))
                {
                    this.message = "{\"success\":\"false\",\"msg\":\"请输入手机号码\"}";
                    return;
                }
                if (string.IsNullOrEmpty(phoneVerifyCode))
                {
                    this.message = "{\"success\":\"false\",\"msg\":\"请输入验证码\"}";
                    return;
                }

                if (!TelVerifyHelper.CheckVerify(cellphone, phoneVerifyCode))
                {
                    this.message = "{\"success\":false,\"msg\":\"手机验证码验证错误\"}";
                    return;
                }
                else
                {
                    this.message = "{\"success\":true,\"msg\":\"手机验证码验证成功\"}";
                }
            }

            if (selectValue == "2")
            {
                object obj = HiCache.Get(cellphone + "email");
                if (obj == null)
                {
                    this.message = "{\"success\":false,\"msg\":\"邮箱验证码验证错误\"}";
                    return;
                }

                if (phoneVerifyCode.ToLower() != obj.ToString().ToLower())
                {
                    this.message = "{\"success\":false,\"msg\":\"邮箱验证码验证错误\"}";
                    return;
                }

                else
                {
                    HiCache.Remove(cellphone + "email");
                    this.message = "{\"success\":true,\"msg\":\"邮箱验证码验证成功\"}";
                    return;
                }
            }
        }
        public void ResetPsssword(System.Web.HttpContext context)
        {
            string username       = context.Request["userName"];
            string password       = context.Request["password"];
            string cellphone      = context.Request["cellphone"];
            string selectValue    = context.Request["selectValue"];
            string cellVerifyCode = context.Request["cellVerifyCode"];

            if (String.IsNullOrEmpty(password))
            {
                this.message = "{\"success\":\"false\",\"msg\":\"密码不能为空\"}";
                return;
            }

            if (!string.IsNullOrEmpty(password) && password.Length < 6)
            {
                this.message = "{\"success\":\"false\",\"msg\":\"密码长度至少6位\"}";
                return;
            }


            if (selectValue == "1")
            {
                if (!TelVerifyHelper.CheckVerify(cellphone, cellVerifyCode))
                {
                    this.message = "{\"success\":false,\"msg\":\"手机验证码验证过期\"}";
                    return;
                }
            }
            Member member = Users.GetUser(0, username, false, true) as Member;

            if (member == null)
            {
                this.message = "{\"success\":\"false\",\"msg\":\"系统出错\"}";
                return;
            }

            if (member.ChangePasswordWithoutAnswer(password))
            {
                //Messenger.UserPasswordChanged(member, password);
                Member newmember = Users.GetUser(0, username, false, true) as Member;
                if (newmember != null)
                {
                    //设置缓存
                    Hashtable hashtable = Users.UserCache();
                    hashtable[Users.UserKey(username)] = newmember;

                    //cookie替换
                    string     name        = "Vshop-Member";
                    HttpCookie httpCookie2 = new HttpCookie("Vshop-Member");
                    httpCookie2.Value   = Globals.UrlEncode(username);
                    httpCookie2.Expires = System.DateTime.Now.AddDays(7);
                    httpCookie2.Domain  = HttpContext.Current.Request.Url.Host;
                    if (HttpContext.Current.Response.Cookies[name] != null)
                    {
                        HttpContext.Current.Response.Cookies.Remove(name);
                    }
                    HttpContext.Current.Response.Cookies.Add(httpCookie2);
                }
                this.message = "{\"success\":\"true\",\"msg\":\"你已经成功的修改了登录密码\"}";
                return;
            }
            else
            {
                this.message = "{\"success\":\"false\",\"msg\":\"密码修改失败\"}";
                return;
            }
        }