Friday, March 30, 2012

How to authenticate users using user login and password stored in SQL database?

Hi. I have a DetailsView with Bound Fields "Login" and "Password". This informations are stored in SQL database. How to solve such authorization? How to compare password stored in database against passowrd typed by user? Is this a good idea to use CustomValidator control to write some checking procedure?. Regards. Pawel.

When you click the login button. Perform a select query to your database that gets the password for the given loginname.

Then compare the two passwords.

Good luck!

No comments:

Post a Comment