Skip to content

Commit

Permalink
fix: don't pass mqtt login info if no password is entered (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbender9 authored Sep 9, 2024
1 parent b15ed49 commit 7c3fecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ module.exports = function (app) {
rejectUnauthorized: false,
}

//if ( password && password.length )
if ( password && password.length )
{
connectOptions.username = username
connectOptions.password = password
Expand Down

0 comments on commit 7c3fecc

Please sign in to comment.