• λ我爱Aspx >> Asp.Net >> [原创]IssueVision 学习笔记(一)-----使用SoapHeader传递Web Serivices自定义的身份验证数据
  • [原创]IssueVision 学习笔记(一)-----使用SoapHeader传递Web Serivices自定义的身份验证数据

  • :aspxer  Դ:internet  :2007-5-28 20:37:03  ؼ:web,数据
  • throw new SoapException(string.Empty, SoapException.ServerFaultCode, "Database");

    }

    // does the user exist?

    if (dataSet.Tables[0].Rows.Count == 0)

    {

    EventLogHelper.LogFailureAudit(string.Format("The username {0} does not exist.", header.Username));

    throw new SoapException(string.Empty, SoapException.ClientFaultCode, "Security");

    }

    else

    {

    // we found the user, verify the password hash by compare the Salt + PasswordHash

    DataRow dataRow = dataSet.Tables[0].Rows[0];

    dbPasswordHash = (string)dataRow["PasswordHash"];

    string dbPasswordSalt = (string)dataRow["PasswordSalt"];

    // create a hash based on the user@#s salt and the input password

    string passwordHash = HashString(dbPasswordSalt + header.Password);

    Ҷƪл˵?
  • һƪProgramming Microsoft Office 2000 Web Components第一章
    һƪ[原创]IssueVision 学习笔记(二)-----为控件添加自定义属性和事件