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

Authenticated user gets kicked when trying to connect with the same account with wrong credentials #6

Closed
wants to merge 1 commit into from

Conversation

galvezlj
Copy link

Authenticated user gets kicked when trying to connect another client instance with the same account even with wrong password.

@@ -34,7 +35,7 @@ function handleConnect (client, packet, done) {
client.id = packet.clientId || uuid.v4()
client.will = packet.will

client.broker.registerClient(client)
//client.broker.registerClient(client)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please remove this commented line?

@mcollina
Copy link
Collaborator

Can you please add a unit test for this?
Also, the CI build is failing: https://travis-ci.org/mcollina/aedes/jobs/86800040

@galvezlj
Copy link
Author

This is incomplete as it prevents users to subscribe properly after authentication. Need to check deeper into the authentication procedure to check what it needs from the registration procedure.

@mcollina
Copy link
Collaborator

Thanks, would you mind adding a couple of unit tests as well?

@mcollina mcollina mentioned this pull request Dec 16, 2015
@mcollina mcollina closed this in c55f347 Jan 5, 2016
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

Successfully merging this pull request may close these issues.

2 participants