How to validate ASP password login form?
3 answers
- Do not store a plain text password in the database. Never.
- ASP.NET login form has OnLogin or something similar. You need to attach a method to it.
- Query the database for the credentials of the user trying to log on. I.e:
SELECT * FROM LOGIN WHERE USERNAME = @P_USERNAME;
Then you compare the password you got from the database with the password entered by the user and you're done.
+3
source to share