Exemplo n.º 1
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string name = context.Request["name"];
            string mail = context.Request["mail"];

            BLL.UserManager UserInfoManager = new BLL.UserManager();
            Model.User      userInfo        = UserInfoManager.GetModel(name);
            if (userInfo != null)
            {
                if (userInfo.Mail == mail)
                {
                    UserInfoManager.FindUserPwd(userInfo);//找回用户的密码
                }
                else
                {
                    context.Response.Write("邮箱错误!!");
                }
            }
            else
            {
                context.Response.Write("查无此人!!");
            }
        }