rename mtausers property throughout

This commit is contained in:
Dave Conway-Jones
2025-08-21 21:47:40 +01:00
parent 38b283e50b
commit 853e88ba24
3 changed files with 7 additions and 7 deletions

View File

@@ -476,7 +476,7 @@
starttls: { value: false }, starttls: { value: false },
certFile: { value: "" }, certFile: { value: "" },
keyFile: { value: "" }, keyFile: { value: "" },
users: { value: [] }, mtausers: { value: [] },
auth: { value: false }, auth: { value: false },
expert: { value: '{"logger":false}' } expert: { value: '{"logger":false}' }
}, },
@@ -506,9 +506,9 @@
} }
// User Management // User Management
let cacheItemCount = 0; let cacheItemCount = 0;
if (node.users && node.users.length > 0) { if (node.mtausers && node.mtausers.length > 0) {
cacheItemCount = node.users.length; cacheItemCount = node.users.length;
node.users.forEach(function (element, index, array) { node.mtausers.forEach(function (element, index, array) {
generateUserEntry(element, index); generateUserEntry(element, index);
}); });
} }
@@ -597,9 +597,9 @@
oneditsave: function () { oneditsave: function () {
let node = this; let node = this;
let cacheUsers = $("#node-input-email-users-container").children(); let cacheUsers = $("#node-input-email-users-container").children();
node.users = []; node.mtausers = [];
cacheUsers.each(function () { cacheUsers.each(function () {
node.users.push({ node.mtausers.push({
name: $(this) name: $(this)
.find(".userName") .find(".userName")
.val(), .val(),

View File

@@ -629,7 +629,7 @@ module.exports = function(RED) {
this.starttls = n.starttls; this.starttls = n.starttls;
this.certFile = n.certFile; this.certFile = n.certFile;
this.keyFile = n.keyFile; this.keyFile = n.keyFile;
this.mtausers = n.users; this.mtausers = n.mtausers;
this.auth = n.auth; this.auth = n.auth;
try { try {
this.options = JSON.parse(n.expert); this.options = JSON.parse(n.expert);

View File

@@ -1,6 +1,6 @@
{ {
"name": "node-red-node-email", "name": "node-red-node-email",
"version": "3.1.0", "version": "4.0.0",
"description": "Node-RED nodes to send and receive simple emails.", "description": "Node-RED nodes to send and receive simple emails.",
"dependencies": { "dependencies": {
"imap": "^0.8.19", "imap": "^0.8.19",