“Username or password is incorrect” is bullshit
151–160 of 170 posts
Re: “Username or password is incorrect” is bullshit
#152Re: “Username or password is incorrect” is bullshit
#153For emails, you can very easily fake a second signup with the same email and ping out an enhanced verification email "Somebody just tried to register with this address but you already have an account".
Building the username into that flow is harder. That's why I preference not having separate usernames but some people would argue this is itself a bad thing (removing a factor or somesuch).
Either which way, Stripe's approach is broken. That doesn't make the whole idea nonsense.
Re: “Username or password is incorrect” is bullshit
#154Earlier quoted context omitted.
I have a commonish firstlast@gmail account and frequently receive what is the obvious result of people in various parts of the country incorrectly providing my email to apply for jobs, order pizzas, and use other services. It is absolutely common for users to supply the incorrect username/email.
This is why it is common practice to require the user to enter their email address twice in forms.
Re: “Username or password is incorrect” is bullshit
#155Earlier quoted context omitted.
Nah, user logins/emails often won't be long enough or random enough. See https://security.stackexchange.com/a/8024/28881 and https://stackoverflow.com/a/5565071/2521092
Would it be an okay practice to prepend the username as extra salt, still using the randomly generated salt?
Re: “Username or password is incorrect” is bullshit
#156Earlier quoted context omitted.
It also seems that would help with not giving out passwords to spoofing sites
The spoofing site could just pretend your U2F was valid and get your password, although it couldn't really do anything with it anyway.
Re: “Username or password is incorrect” is bullshit
#157Earlier quoted context omitted.
This is why it is common practice to require the user to enter their email address twice in forms.
Thank heavens we never invented copy and paste, would certainly make this more of an issue.
Re: “Username or password is incorrect” is bullshit
#158Earlier quoted context omitted.
I think there is an important point which is ignored, in the article and here in the thread: typos. Unfortunately, when designing a login flow (and a signup one), you can’t assume that the user always inputs the right things. Try logging in into facebook, for example, mistyping gmail or with your password with the wrong case, like all uppercase. In many cases... you get in! This is to prove that they had to “improve”…
A lot of places separate out the email/username field so it's a 2-step form. They will show you your avatar and maybe some other public info when you enter the password. This is a better way to do this I believe, although it does make logging in with a password manager [slightly] more annoying.
Re: “Username or password is incorrect” is bullshit
#159I have an argument for "username or password is incorrect" messages: it's possible that the password is correct, username exists but isn't the intended one. Then "password is incorrect" message would be lying, as the issue is actually with a username.
Re: “Username or password is incorrect” is bullshit
#160Earlier quoted context omitted.
It knows if it doesn't exist though. This whole thing is about sites that say "Username or password is wrong" when they know the username is wrong because it doesn't exist!
The message is still not wrong if you think of "or" as the boolean or, not as the boolean xor. The system knows the username is wrong but it doesn't know anything about the password.