Allow duplicate usernames #16
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: apps/BareRTC#16
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
When using JWT authentication: if a user logs in to the chat twice (in different tabs or on different devices), the chat server currently doesn't allow the duplicate username and will rename the second login to add a 2 at the end of their username.
The chat backend currently has assumptions that usernames should be unique (such as a hash map of usernames to their connection objects) that could be fixed.
Some possible complicating factors:
This was handled a different way.
When JWT authentication is used to log in, you will take your username and your older sessions are disconnected and told that they have signed in somewhere else. Non-JWT logins will be assigned new usernames as before to reduce conflicts.
A more pressing/common issue was peoples network would hiccup and they log in again with a duplicate name and the chat server didn't realize the old name went away.