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

c# - IMAP GMAIL getting folder list problem -

PHP proxy to get XML: problem with URL arguments -