Earlier quoted context omitted.
i think its done to prevent brute force attacks on passwords. If someone knows that username was correct and password wasn't, he knows something! That's why the message 'username or password does not match' and that's why both the fields needs to be empty when page loads with error.
You're correct about the message, but actually you don't fill out the password field because you should never return the password to the client. It is OK to return the username to the client, and does not imply that the username was correct as long as the messaging is as you said.
Techniques To Simplify Sign-Ups and Log-Ins
31–40 of 178 posts
Re: Techniques To Simplify Sign-Ups and Log-Ins
#32Re: Techniques To Simplify Sign-Ups and Log-Ins
#33Earlier quoted context omitted.
i think its done to prevent brute force attacks on passwords. If someone knows that username was correct and password wasn't, he knows something! That's why the message 'username or password does not match' and that's why both the fields needs to be empty when page loads with error.
Depends on whether the login username is public or not. If you're on a community based site where others can see your username, there's no reason to hide it. Anybody trying to brute force your password is probably specifically targeting your account. On the other hand, if you're on a service where other people cannot see your username, it would indeed be better to return a 'username or password does not match' error.
Re: Techniques To Simplify Sign-Ups and Log-Ins
#34Autofocusing the login field is a bad idea. Sometimes the javascript take some times to load and the user already filled the login field and is already typing is password when the javascript focus the login field: then the password is written in clear on the screen, and that's not pleasant for the users.
http://www.whatwg.org/specs/web-apps/current-work/multipage/...
Re: Techniques To Simplify Sign-Ups and Log-Ins
#35Autofocusing the login field is a bad idea. Sometimes the javascript take some times to load and the user already filled the login field and is already typing is password when the javascript focus the login field: then the password is written in clear on the screen, and that's not pleasant for the users.
Re: Techniques To Simplify Sign-Ups and Log-Ins
#36Re: Techniques To Simplify Sign-Ups and Log-Ins
#37Earlier quoted context omitted.
You're correct about the message, but actually you don't fill out the password field because you should never return the password to the client. It is OK to return the username to the client, and does not imply that the username was correct as long as the messaging is as you said.
why would you want to show something to user that's wrong or does not exist? Most usernames are anyways smaller and its not painful to enter it again. If you want to serve people with very long usernames by filling in the username field, you are focusing on a very small fraction of users.
Re: Techniques To Simplify Sign-Ups and Log-Ins
#38Using OpenID makes the rest of the techniques moot (except for OpenID providers), right?
Unfortunately, the prevailing sentiment right now seems to be that OpenID is not a good idea.
Google turns up a Quora thing which, frankly, is full of handwaving bullshit.
Are there actual technical reasons why OpenID is bad?
Re: Techniques To Simplify Sign-Ups and Log-Ins
#39Admittedly I hadn't heard of using a client-side JS input box as an alternative to a Captcha. Does that sort of thing actually work, or can spammers get around it? Is there any anecdotal data to suggest that that's a better method? (not snarking; actually curious)
For example... 1) Start capturing packets via wireshark. 2) Fill out the form. 3) Replay the captured packets, altering the username.
Presto, now you can sign up as fast as you want.
Re: Techniques To Simplify Sign-Ups and Log-Ins
#40Earlier quoted context omitted.
why would you want to show something to user that's wrong or does not exist? Most usernames are anyways smaller and its not painful to enter it again. If you want to serve people with very long usernames by filling in the username field, you are focusing on a very small fraction of users.
Because it's easier to correct something that's almost correct than to start over, and because it would help you determine if the username or the password was at fault.