News for hackers. Stuff that matters.
Re:Ask HN: Should a login be a Username or an Email? by jfaucett on Saturday July 01, 2017 @07:52PM (#14679819)
"I've always wondered which one of the two is more user friendly".

Well, I'd say neither one. I personally prefer OAuth and a sign in with X (github, google, facebook, etc).

This gives the user the most flexibility and quickest/easiest sign-in/register experience. They also get to pick and choose what you get access to and depending on what you need the user might not have to even give away his email.

Re:Ask HN: Should a login be a Username or an Email? by zhte415 on Saturday July 01, 2017 @10:02PM (#14680402)
Yup, this.

But I'd give the option for email or username too, because some people like myself are oldskool and don't want discrete identities linked together.

But for OP - prioritise it. You could design for a plethora of options. Choose the easiest use-case for you and your audience, and then do other higher priority stuff, and then come back to lower priority login method choices.

Re:Ask HN: Should a login be a Username or an Email? by altern8tif on Sunday July 02, 2017 @03:03AM (#14681277)
Problem with this is that you assume your users will either have a github, google, facebook login.

While that may cover most people, there are increasing numbers of online users choosing to delete their facebook or google accounts.

If you want to use a third party login, remember to also provide a more traditional login option as well (email/username).

Re:Ask HN: Should a login be a Username or an Email? by Freak_NL on Sunday July 02, 2017 @03:20AM (#14681322)
Also people who do use one or more of those services, but don't like the idea of linking each and every account to them.
Re:Ask HN: Should a login be a Username or an Email? by imhoguy on Sunday July 02, 2017 @04:53AM (#14681585)
This. Linking is one thing, but the other are permissions: sites asking for access to my contacts are disqualified straight away.