News for hackers. Stuff that matters.
Re:Ask HN: Should a login be a Username or an Email? by gkop on Sunday July 02, 2017 @03:02AM (#14681272)
Would you clarify why it's worse to use an email address than a username as an internal key/identifier? It seems to me in either case you suffer the problem of, if the email or username changes, needing to update all the "foreign key" references to the identifier throughout your database.
Re:Ask HN: Should a login be a Username or an Email? by lathiat on Sunday July 02, 2017 @03:41AM (#14681382)
That would be my assumption, and feels like a good idea to me.

Use the e-mail as the login locator, but not as the primary key.