protected void Login_Click(object sender, EventArgs e)
        {
            string userName = txtUserName.Text.Trim();
            string password = txtPassword.Text.Trim();

            bool passwordVerified = AuthenticationUtilities.VerifyPassword(userName, password);

            if (passwordVerified)
            {
                FormsAuthentication.RedirectFromLoginPage(userName, false);
            }
            else
            {
                pnlError.Visible = true;
                txtPassword.Text = "";
                txtUserName.Text = "";
            }
        }
 public bool LogonUser(string userName, string password, string authority)
 {
     return(AuthenticationUtilities.VerifyPassword(userName, password));
 }
 public bool IsValidPrincipalName(string principalName)
 {
     return(AuthenticationUtilities.VerifyUser(principalName));
 }