3 ms·
Sounds like they are using the username as the key in their DBs, which sounds like the ultimate case of any pain: Could the method for computing canonical user
by brown9-2 13y ago
Sounds like they are using the username as the key in their DBs, which sounds like the ultimate case of any pain:
Could the method for computing canonical usernames based on nodeprep.prepare() be salvaged? If not we would be in trouble since we use canonical usernames in various databases so that changing how to derive them in a non-backwards compatible way would be quite costly.
- tantalor 13y agoNot necessarily. It their canonicalization function were idempotent (e.g., the identity), then this database scheme would work well. How else do you map username to user id?
- brown9-2 13y agoWell generally it makes sense to use that userid as a primary key everywhere rather than the username. You only need the mapping of username to userid in one place. Their current scheme also makes it sound hard to change your username.
- tantalor 13y agoAh I fully agree. I misunderstood your post to say you should never use a user name as a key.