标题:检验密码的处理,望详解
只看楼主
ruirui112811
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2013-6-7
 问题点数:0 回复次数:0 
检验密码的处理,望详解
下面是检验密码的处理代码,新手望详解:
#endregion
        Maticsoft.BLL.db_User db = new Maticsoft.BLL.db_User();
        Maticsoft.Model.db_User mode = db.GetModelByUserName(this.mail.Value);
        if (mode != null)
        {
            if (mode.UserPwd == DESEncrypt.Encrypt(this.pwd.Value))
            {
                Session["USERINFO"] = mode;
                Response.Redirect("UserInfo.aspx");
            }
            else
            {
                this.pwd_succeed.InnerText = "用户密码错误";
            }
        }
        else
        {
            this.pwd_succeed.InnerText = "用户密码错误";

        }
    }
}
搜索更多相关主题的帖子: 密码 null 
2013-06-07 22:46



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-414780-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.392520 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved