Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent duplicate username in a chatroom #30

Open
mrinmay7875 opened this issue Feb 10, 2021 · 1 comment
Open

Prevent duplicate username in a chatroom #30

mrinmay7875 opened this issue Feb 10, 2021 · 1 comment

Comments

@mrinmay7875
Copy link
Contributor

mrinmay7875 commented Feb 10, 2021

As of now we can have more than one user in a chat room. So if in a chat room if there is more than one users having the same username and then anyone of them sends a message then it becomes difficult/impossible to identify who among them sent the message.

It would be better if we could implement the feature which wont allow the user to join with a username that is already being used by one of the users in that chatroom.

@RocketLauncher21
Copy link

A better idea would be giving a user ID to every user. If someone connects with a username for example "a" he will get a user ID. I will take the user id 123 for an example. Then , if he rejoins, with the same username, he should get the same ID. but if someone else joins, with the name "a" it should give him another user ID. For example 124. So thats a better way to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants