namespace Zone.owner
{
/// <summary>
/// $codebehindclassname$ 的摘要说明
/// </summary>
public class IsOldPwdRight : IHttpHandler,IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
string oldPwd = context.Request["oldPwd"].ToString();
string email = ((UserEntity)context.Session["userEntity"]).Email;
if (UserBLL.Login(email, oldPwd) == null)
{
context.Response.Write("密码错误");
}
}
public bool IsReusable
{
get
{
return false;
}
}
}
}
ashx文件中要调用Session需要实现接口IRequiresSessionState
最新推荐文章于 2020-02-08 17:24:54 发布