Most active commenters
  • esafak(3)

←back to thread

59 points amukbils | 11 comments | | HN request time: 0s | source | bottom
1. oytis ◴[] No.46199335[source]
Your email is your identity. If they allow you to change your email, what they should refer you by, your passport number? Was kind of easier in the times of usernames, but these are long gone
replies(3): >>46199352 #>>46199406 #>>46200600 #
2. wizzwizz4 ◴[] No.46199352[source]
They should use the integer primary key of the users table, of course.
replies(3): >>46199407 #>>46199422 #>>46202929 #
3. lxgr ◴[] No.46199406[source]
Most services I know allow changing both.
4. TZubiri ◴[] No.46199407[source]
That's probably an implementation feature that is hidden and not dependable if it exists at all.
5. piskov ◴[] No.46199422[source]
Nah, that’s too 1985.

Because client doesn’t know it, inserts can be slow in cross-db environment.

Guid is always better (can be client generated), and modern guid versions can be ordered chronologically

6. esafak ◴[] No.46200600[source]
You can use a random numerical ID as PK and let people associate as many authn IDs as they want after logging in with one.
replies(2): >>46202526 #>>46205755 #
7. thiht ◴[] No.46202526[source]
Why would you allow this complexity for basically nothing?
replies(1): >>46204951 #
8. oytis ◴[] No.46202929[source]
Please enter your integer primary key and password to log in.
9. esafak ◴[] No.46204951{3}[source]
Using a separate table for authn is a basic pattern for this problem. What would you do?
10. Reubachi ◴[] No.46205755[source]
Who in this scenario outlines the key infrastructure, and how is the private key maintained?
replies(1): >>46205906 #
11. esafak ◴[] No.46205906{3}[source]
primary key. https://en.wikipedia.org/wiki/Primary_key