You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usernames are not unique. Two accounts can share the same username.
The schema declares username with no unique constraint or index: user.model.ts
The username update saves the new value without checking whether it is already taken: user.service.ts
The default username comes from the first 8 characters of the email in a pre-save hook, so two emails sharing an 8-character prefix collide by default: user.model.ts
Why it matters
Usernames are public identifiers, looked up via getByUsername. Duplicates make lookups ambiguous.
Problem
Usernames are not unique. Two accounts can share the same username.
Why it matters
What to do