web/web/Session.ashx
@@ -89,11 +89,17 @@
        string account = context.SessionObject.Account;
        if (string.IsNullOrEmpty(account))
            throw new ArgumentException("获取账户信息出错,请重新登录!");
        this.dao.GetUser(account);
        SysUser userInfo = this.dao.GetUserInfo(context.SessionObject.UserID);
        string1 += userInfo.Salt;
        string str = userInfo.Password == DataHelper.MD5Hex(string1) ? userInfo.Password : string1;
        if (!string.Equals(context.SessionObject.Password, str))
            throw new ArgumentException("原始密码不正确,请重新输入!");
        string3 += userInfo.Salt;
        if (this.dao.UpdatePassword(context.SessionObject.UserID, str, DataHelper.MD5Hex(string3)))
            context.SessionObject.Password = DataHelper.MD5Hex(string3);
        return new JsonPageResult(true, (object) "密码更新成功!");
@@ -129,6 +135,8 @@
        try
        {
            user = this.dao.GetUser(string2);
                string3 += user.Salt;
            if (!this.dao.CheckLogin(string2, string3, user))
                return new JsonPageResult(false, (object)new
                {