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

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -