1 Replies - 693 Views - Last Post: 14 January 2013 - 11:52 AM Rate Topic: -----

#1 curioussaggi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 08-January 13

how to call authenticate function having encrypted password

Posted 14 January 2013 - 11:51 AM

i am using authenticate function in dll following is the code that is used in the class of dll

 public DataSet Authenticate(string UserName, string Password)
        {
            DataSet ds = db.ExecuteDataSet("spAuthenticate", new object[] { UserName.ToLower().Trim(),EncryptText( Password)});
            return ds;
        }


i have taken two textboxes "username" and "password" and one button"login"
on the login button click i used this code but this is not helping as its some how nt validating the password from the database
  protected void Bttnlogn_Click(object sender, EventArgs e)
        {

            

            athn.Authenticate(Txt_user.Text, Txt_pwd.Text);
             
            
            Response.Redirect("ViewInvoices.aspx");
}


what should be done more so that it validates the username and password from the database.

Is This A Good Question/Topic? 0
  • +

Replies To: how to call authenticate function having encrypted password

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9568
  • View blog
  • Posts: 36,222
  • Joined: 12-June 08

Re: how to call authenticate function having encrypted password

Posted 14 January 2013 - 11:52 AM

Quote

what should be done

... not opening duplicate threads. Closing.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1