php - How to check which one of the username or password is incorrect? -


i want check 1 of username or password incorrect in single mysql query.

scenario:

when user types username , password , clicks submit, want show error message 1 incorrect. need simple , optimized query this.

as general rule of thumb it's better return message user saying "the username or password incorrect" wouldn't indicate attacker if username or password wrong.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -