Bugfix: use of credentials in STOMP server (username property typo) (#1007)

* Bugfix: use of credentials in stomp server (username property typo)
This commit is contained in:
Olivier Verhaegen
2023-06-06 12:25:06 +02:00
committed by GitHub
parent 71a39ac16b
commit 3fd14223ef

View File

@@ -100,7 +100,7 @@ module.exports = function(RED) {
setIfHasProperty(options, node, "reconnectdelay", init); setIfHasProperty(options, node, "reconnectdelay", init);
if (node.credentials) { if (node.credentials) {
node.username = node.credentials.username; node.username = node.credentials.user;
node.password = node.credentials.password; node.password = node.credentials.password;
} }
if (!init && hasProperty(options, "username")) { if (!init && hasProperty(options, "username")) {