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

View File

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

View File

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