Live data from Hacker News

Single input login form

awayback.com

21–30 of 61 posts

Re: Single input login form

#21
post #19
post #9

A better way to do this: * Have a text input and password input HTML entities next to each other with CSS that removed the right/left border and spacing (dynamically resize the input boxes if you like) * Capture a space keyprees event to shift focus to the password field * Same effect, but degrades in non-JS browsers to a normal entry field and allows the browser to still provide password remember, masking and form p…

Why do this at all? Tab isn't any harder than teaching users that on your site and only your site, space works the same way on one field. Poor discovery and dubious benefit is not a great combo. That said, you're right that it would be a better implementation, assuming backspace effectively shift-tabbed.

[deleted]

Re: Single input login form

#22

I see single form logins useful on Mobile devices -- especially since I do not particularly care if my password is masked on mobile devices. Mobile phones are distinctly lacking "tab" and changing input forms is usually a pain.

> Mobile phones are distinctly lacking "tab" and changing input forms is usually a pain.

iPhone ALWAYS provides "next" and "previous" (input) buttons when filling web forms. On my old phone, the arrow keys did this. What phones are you imagining?

Also keep in mind the hacks needed for this as mocked up are going to be even less reliable and less testable on mobile

Re: Single input login form

#23
post #19
post #9

A better way to do this: * Have a text input and password input HTML entities next to each other with CSS that removed the right/left border and spacing (dynamically resize the input boxes if you like) * Capture a space keyprees event to shift focus to the password field * Same effect, but degrades in non-JS browsers to a normal entry field and allows the browser to still provide password remember, masking and form p…

Why do this at all? Tab isn't any harder than teaching users that on your site and only your site, space works the same way on one field. Poor discovery and dubious benefit is not a great combo. That said, you're right that it would be a better implementation, assuming backspace effectively shift-tabbed.

I wouldn't. My response was totally about a better way of doing it, otherwise I would have mocked this up and published it.

My own opinion is that the lack of consistency in registration and signup forms across the web is a real problem for regular users, and we do not need another yet more confusing option. I picked this up from watching regular people attempt to signup/signin to web services.

The web could use a standard style guide published by some sort of group. ie. this is what a reg form should look like, this is where a login box should be etc. It is a stretch to think it would work, but it would help regular users a lot (I am not talking about all forms having the same design, talking about standard field names and positions, standard features (eg. double prompt for password, show strength, password reset, no password in clear, email as username etc, always have a logout button in top-right, etc.).

There have been no real breakthroughs in design wrt the signup/signin/logout process online. HTTP auth didn't catch on, and that was the last chance we had at standardizing it.

Re: Single input login form

#25
Uh, what? Why is pressing space and violating 50 years of UI convention easier than pressing tab and keeping yourself consistent?

If you want to save me some typing, allow me to login with my SSL certificate.

Re: Single input login form

#26

I have some problems with this. 1) It's unfamiliar, and this will slow people down. While this is not a major issue, compared to the rest, it may certainly increase support costs, which may not be allowable if you're working on Enterprise software with a huge userbase. 2) It would require a nonstandard UI widget in order to display the username in cleartext while hiding the password in the same field. If you're desig…

> Also, having separate warnings for your username and password matches is a bad security practice. Best to just say "username/password combination not found" instead of letting a potential hacker know he's stumbled upon a valid username.

I don't see why that's generally going to be a security flaw; most services already indicate if a username is taken when signing up so a hacker can poll for random names there instead.

Re: Single input login form

#27
1) Nielsen's First Law of Web Usability: People spend most of their time on _other_ people's websites. This wouldn't save anybody any amount of time at all.

2) This is virtually impossible to implement, input textboxes are very not hack-friendly.

A password input box without a border, really? Surely you wouldn't have the username be an ugly fixed-width font, so how do you know how wide the username is?

Have fun detecting when the cursor has reached the left most edge of the password box, and focus should be transferred back to the username box and the cursor set to the rightmost edge of the username box, and vice versa. When someone tries to select text from both username and password boxes, seeing as they appear to be one contiguous textbox, there's no way to avoid somehow violating user expectations.

Re: Single input login form

#28

I have some problems with this. 1) It's unfamiliar, and this will slow people down. While this is not a major issue, compared to the rest, it may certainly increase support costs, which may not be allowable if you're working on Enterprise software with a huge userbase. 2) It would require a nonstandard UI widget in order to display the username in cleartext while hiding the password in the same field. If you're desig…

Does everyone agree about that last point? That having a single error message that says "username/password combo not found" is more secure? I have always thought that the username was not secret and to treat it as part of the secret is almost like saying there is no username just a big password that you enter in two distinct boxes. I understand that hackers do like ways to validate that they have an actual username and aren't just guessing ... it is like having the first half of the 'big secret password' cracked.

I am throwing this out there because I think it is important to know which pieces of your security model are 'load bearing' so to speak. I'm not really comfortable with this quasi secret status that the username enjoys. I think it is either a secret or it is public info.

Re: Single input login form

#29

I see single form logins useful on Mobile devices -- especially since I do not particularly care if my password is masked on mobile devices. Mobile phones are distinctly lacking "tab" and changing input forms is usually a pain.

However, any attempt to get the password masking to work on the desktop would involve a script that almost surely will break on mobile.

Re: Single input login form

#30
It might be the whiskey talking but I think this is a great idea! It would really clean up those embedded login forms placed in the header & body of web pages. Think about how clunky text site searches would look and feel if the majority of them included 2 - 4 form fields.

That being said, the biggest problem I see is that there is no visual separation of the two fields, and the fact that the user has to read a sentence to figure out how to log in. A nice soft divider like a pipe bar or forward slash between the text "username" and "password" would help with this visual problem. More white space would help a lot too. I think you could make up for the remaining confusion with the following:

(I am assuming there are two form fields that are only visually changed to look like one form field)

1) When the user first sets focus to the username field, do not remove the "Username" text, but simply highlight it, which will give the field visual boundaries. Once the user begins typing replace "Username" with the input text. (Repeat for password field)

2) Key capture "tab" and either " | " or " / " (whichever you are using as the field separator). When they fire this key press, set focus to the "Password" field.

3) If the user hits the "Sign In" button with empty string in either the Username field or the Password field, set focus to the empty field and show tool tip.

4) If both fields lose focus while one has empty string as a value, show tool tip.

Using bold to convey focus is a nice touch by the way.

The sad thing is there will be a lot of users that do not like this, a lot. If they frequent the site enough, it will not be that big of a deal, they will learn quick enough. But like some previous posters said, if there is a large user base logging in through this form, you will get quite a bit of backlash. I created a js driven date form field that works just like the calendar field you see in both Mac OSX and Windows Vista. Even though every user has seen it, I got a lot of complaints the first week that it was included in our application. It was worth though, it rocks!

I really do like this single field login form, I'll be using it in my pet project.

Post reply on HN