Skip to content

Commit

Permalink
Merge pull request #315 from Bettman66/master
Browse files Browse the repository at this point in the history
fix password
  • Loading branch information
GermanBluefox authored Aug 13, 2023
2 parents 0405cda + 725ea4c commit d982fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ function MQTTServer(adapter) {
options.password = options.password.toString();
}
if (config.user !== options.username ||
config.pass !== options.password) {
config.password !== options.password) {
adapter.log.warn(`Client [${client.id}] has invalid password or username`);
client.connack({returnCode: 4});
if (oldClient) {
Expand Down

0 comments on commit d982fa2

Please sign in to comment.