/// <summary> /// 忘记密码 /// </summary> private void ForgetPwdForEmail() { string UserId = DAL.DalComm.ExStr(" select top 1 UserId from dbo.UserInfo WITH(NOLOCK) where Email ='" + ReStr("EmailOrUserId") + "' or UserId ='" + ReStr("EmailOrUserId") + "' "); if (UserId == "") { throw new Exception("用户名或邮箱填写不正确!"); } else { BLL.UserBLL bll = new BLL.UserBLL(); string Email = bll.BackPwdMail(UserId); ReDict2.Add("Email", Email); ReTrue(); } }