I want to find out whether the password is incorrect for the username. I'm using sqldatareader.
AngelicOne
4
Posting Whiz
Recommended Answers
Jump to Postassuming the table you query for the password has a loginname and password columns, write you sql statement like this.
SELECT LOGINNAME FROM USERTABLE WHERE LOGINNAME = @login AND PASSWORD = @pwd;
The parameters you will pass in are @login and @pwd. You should run this as a …
Jump to PostWell there's an option where you can pull the UN/PW from the DB based on a query which checks against the UN only and confirm the PW against the associated PW for the UN you pulled.
In doing this, even if the PW is incorrect you still verify that …
All 8 Replies
edepperson
8
Newbie Poster
AngelicOne
commented:
understood
+1
Lusiphur
185
Practically a Posting Shark
Team Colleague
Featured Poster
AngelicOne
4
Posting Whiz
Lusiphur
185
Practically a Posting Shark
Team Colleague
Featured Poster
AngelicOne
commented:
good logic
+1
AngelicOne
4
Posting Whiz
Lusiphur
185
Practically a Posting Shark
Team Colleague
Featured Poster
AngelicOne
4
Posting Whiz
AngelicOne
4
Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.