>Always display a generic message like "Invalid username or password." This prevents attackers from enumerating valid usernames without knowing their passwords.
If you have a password recovery page, couldn't attackers use that to test usernames?
If you have a password recovery page, couldn't attackers use that to test usernames?
I've seen tons of sites that tell you "invalid username or password" but will happily tell you if the username is registered if you try to register it. It adds no security and just inconveniences users.
Some sites will tell you "Email not on account."
I've seen a few that say "We've emailed you instructions on resetting your password."