Live data from Hacker News

Techniques To Simplify Sign-Ups and Log-Ins

smashingmagazine.com

31–40 of 178 posts

Re: Techniques To Simplify Sign-Ups and Log-Ins

#31
post #27
post #23

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.

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

#32
Autofocusing 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

#33
post #29
post #23

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.

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.

Makes sense.

Re: Techniques To Simplify Sign-Ups and Log-Ins

#34
post #32

Autofocusing 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.

That's why you should use HTML5 autofocus attribute (perhaps with a JS fallback).

http://www.whatwg.org/specs/web-apps/current-work/multipage/...

Re: Techniques To Simplify Sign-Ups and Log-Ins

#35
post #32

Autofocusing 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.

You could get around this by first checking if another field has input.

Re: Techniques To Simplify Sign-Ups and Log-Ins

#37
post #31
post #27

Earlier 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.

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.

Re: Techniques To Simplify Sign-Ups and Log-Ins

#38
post #15
post #6

Using 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.

Why, exactly? I'm about 100x more likely to sign up for your site if you let me press a button and log in with my Google account. It's also really easy to implement with Django middleware.

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

#39
post #8

Admittedly 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)

No client-side method can ever work against a sufficiently motivated spammer.

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

#40
post #37
post #31

Earlier 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.

And how do you know if someone was playing around with usernames or genuinely trying to login? I agree with 'dvdhsu' comment that if its a public service where others can see username its fine to load error form with username but if its a service where other users couldn't see your username its not a good idea to load error form with username irrespective of whether it was right or wrong.
Post reply on HN