From badee98b71783944b12757b33ad9ceaf2f460315 Mon Sep 17 00:00:00 2001 From: si458 Date: Sun, 10 Nov 2024 17:50:45 +0000 Subject: [PATCH] fix badlogins naming #6516 Signed-off-by: si458 --- meshuser.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/meshuser.js b/meshuser.js index 81ebbac6..660b4e46 100644 --- a/meshuser.js +++ b/meshuser.js @@ -7157,13 +7157,9 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use for (var i in parent.badLoginTable) { badLoginCount++; if (typeof parent.badLoginTable[i] == 'number') { - cmdData.result += "Cooloff for " + Math.floor((parent.badLoginTable[i] - Date.now()) / 60000) + " minute(s)\r\n"; + cmdData.result += (i + " - Cooloff for " + Math.floor((parent.badLoginTable[i] - Date.now()) / 60000) + " minute(s)\r\n"); } else { - if (parent.badLoginTable[i].length > 1) { - cmdData.result += (i + ' - ' + parent.badLoginTable[i].length + " records\r\n"); - } else { - cmdData.result += (i + ' - ' + parent.badLoginTable[i].length + " record\r\n"); - } + cmdData.result += (i + ' - ' + parent.badLoginTable[i].length + " attempt(s) until Cooloff ban\r\n"); } } if (badLoginCount == 0) { cmdData.result += 'No bad logins.'; }