4 ms·
Side note: usernames should just be emails these days, they're unique and save all the effort of needing another made up name.
by manigandham 11y ago
Side note: usernames should just be emails these days, they're unique and save all the effort of needing another made up name.
- scrollaway 11y agoTheoretically yes, but it's not as simple as that. Every identity can have more than one email associated with it, and emails can change over time. So "username == email" is fine as long as the concept of a username mutating is fine.
- manigandham 11y agoI don't see a problem, it just means you can login with multiple emails then. They're still unique to you. LinkedIn and Facebook and other services already do this. A username/real name can still be used as the "name" if this is an online community or something similar.
- kbenson 11y agoLinkedIn and Facebook can do this because your email is not your username. There likely isn't really a username in those systems, just a user id. Almost all systems have a user id, but the distinction here is slightly different. Instead of a user record which has an id, username and possibly full name, Facebook likely has a user record with an id, a (display) username, and then there is a separate set of auth records with the multiple ways you can authenticate to the account, such as emails and passwords, API tokens, phone numbers, etc. It may not sound like a big distinction, but there is a big distinction there. Instead of your username being your email address, they've abstracted the authentication from the core user record such that usernames are not used for authentication, so don't have to mutate if the authentication identifier (email address, phone number) changes, just some auth settings. This is obviously a much more extensible and robust way to deal with authentication over time, but it's also obvious it's much more complex than a simple username/password pair.
- stickfigure 11y agoWhat you're describing is "use a synthetic primary key for your User", which is something even the most naive junior web developer does automatically these days. There's nothing special about LinkedIn and Facebook except that they went through the trouble of adding additional authentication mechanisms. You can too, no matter what you treat as a "username".
- kbenson 11y agoI'm not entirely sure where you got the impression I was implying it was hard and esoteric, and only Facebook and LinkedIn could do so. I was simply noting that there's a difference between email as a username and email as part of one or more authentication tokens, and the differences in design and how it affects the possible future need of users to change what are often usable as authentication (email addresses, phone numbers, etc).
- nileshtrivedi 11y agoYou are describing the tripartite identity pattern: http://habitatchronicles.com/2008/10/the-tripartite-identity-pattern/ http://habitatchronicles.com/2008/10/the-tripartite-identity...
- kbenson 11y agoFor the most part. My example was more a bipartite pattern, because I was covering the authentication aspects, not the entire identity structure (which I believe Facebook and LinkedIn would implement as the article outlines). For a system where you don't need to track multiple social identities, and where you interact within that system through your identity on that system, that's probably enough.
- manigandham 11y agoYea maybe I should've been more specific but I was just talking about the user's perspective: usernames aren't necessary for most sites and just means one more thing they have to create and remember. Re: implementation - I don't see the big distinction. These are all just related properties of a master user id number. Those properties can be anything and any of them (in any combination) can be used to login.
- toyg 11y ago> They're still unique to you. Nope. Most free email providers out there (including gmail) have policies for username expiration, some even quite aggressively (like one month without login). "Me" on one of these services might not be "me" in three months' time, but you-website won't know that and will happily send a password reset link to my old email.
- usrusr 11y agoMany email addresses are dumb forwards without the eventual receiver (the "identified") even having an account directly related to the domain where the forwarding is done. Would those be usable for persona or only the "backend" address with an actual user login that collects forwarded emails and is ideally never given to a third party?
- k__ 11y agoWouldn't a new email be as unique as the old one? I mean mutating is only a problem if usernames collide.
- moron4hire 11y agoThese are not unique to email addresses as identifiers, because people change over time. You can't even count on people's real names staying the same over time, as something as simple as marriage gives many an impetus to change it. Any database that assumes immutability of one's visible identity is broken by design.
- emidln 11y agoServices that don't require email for functionality shouldn't require email addresses at all. An excellent example of this is reddit.
- skrebbel 11y agoFunctionality such as "forgot password"?
- sp332 11y agoCompletely optional. Like HN for example.
- CM30 11y agoSo if someone forgets their login details, they're basically screwed? Because I've used some sites like that, and they're a royal pain whenever something goes wrong. For example, TV Tropes didn't used to have a password reset, so every time something went wrong, you'd pretty much have to either register a new account or bug someone on the forums about it. Same with another site I was on, except the usual solution was seemingly 'find one of the staff on another site they're a member of and send them a message there'. Made for a nice security hole too, since people could (and did) impersonate others and get given their accounts as a result. You need some sort of email (or other contact information, like a phone number) simply so people can get their account details back in a semi secure way.
- sp332 11y agoYou can have a password reset feature, but it would be optional. If the person decides not to include their email, they would have to bug a mod who would maybe reinstate them. You could also use SMS or a twitter handle or even snail mail instead of requiring an email address.
- sghodas 11y agoYou'd rather share your phone number or home address than your email address?
- Silhouette 11y agoThat depends on context, of course. As an obvious example, if you're actually selling something, you very much do need to know the real name and possibly real address of the person you are contracting with.
- manigandham 11y agoYes, I was only talking about usernames and how they're often unnecessary for most sites, especially the login process.
- izacus 11y agoSo what happens when I want to change my email? I lose all my accounts?
- manigandham 11y agoYou... just update your email. Or add the new one if the service supports multiple.
- amsb 11y agoIt depends on the security needs of the service. Email addresses are discoverable making it easier for an attacker to target a particular account while usernames give the user the opportunity to further insulate themselves from being discovered on a service and potentially brute-forced or cross-ite attacked. Perhaps less important for a social sharing service and more important for a financial service, but it depends on the user.
- drdaeman 11y agoWhat's the benefit? And, more than this, why do I must provide anyone my mail address? Why do I have to provide it at all? I understand and I'll provide my email address, my JID, my phone number and whatever else I'm willing to provide, if I want someone to contact me. But contact details are technically completely unnecessary to just have an account.
- cmurf 11y agoI agree. We're doing this wrong. Airport "free" WiFi wanting to know my date of birth, and cranky weird crap like that.
- CaptSpify 11y agoAnd im just going to lie anyway. How many people tell the truth on those?
- jessaustin 11y agoI do the same, but how long will it be until that's some sort of TSA violation that will get us on a list?
- striking 11y agoPassword reset. Services need to identify you in another way to authenticate you that isn't your password. If you don't want that, use Mailinator and forget about it. It's insurance against stupid support requests is what it is.
- ams6110 11y agoThey are not necessarily unique over time. There's no guarantee that jrandom@example.com today is the same person it was a year ago or a year hence. Or in the case of services like mailinator, even unique at all.
- MarkMc 11y agoExcept that users are really bad at choosing strong passwords. A significant percentage will even use the same email/password combination accross multiple sites. For a site which contains sensitive financial or medical data, it is better to issue a 'username' that contains random characters. (This is the technique the UK government uses when users log in to pay tax)
- tripzilch 11y agoVisiting my parents for Christmas, I helped my mom set up her new win10 laptop. (and she's real good with computers for someone her age whose job wasn't in IT) Lesson here for anyone wanting to use emails for usernames: Make it really clear that you're asking for the email as an ID, as the username. Otherwise this will incline people to enter the same password as their email because they think they're asked to log in. Even if they know it's important not to re-use passwords over different logins. To make this anecdata N>1, I teach computer stuff to kids (ages 8-12, generally) and they tend to make the same mistake. (working on semi-public computers, I am glad I get to teach them about Private Windows: "if it's not your computer, only enter your password on a window that shows the little mask/sunglasses-guy")