From 414d9b956105d3e9a2fbaa1c3faf2c15b88c62d2 Mon Sep 17 00:00:00 2001 From: si458 Date: Fri, 19 Apr 2024 11:48:49 +0100 Subject: [PATCH] undo #5452 and #6036 commits Signed-off-by: si458 --- meshuser.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/meshuser.js b/meshuser.js index d43386c2..32ef1d0e 100644 --- a/meshuser.js +++ b/meshuser.js @@ -5792,17 +5792,6 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use } return; } - for (var x in parent.users) { - if (parent.users[x].email == command.email){ - if (command.responseid != null) { - obj.send({ action: 'adduser', responseid: command.responseid, result: "Email address already in use", msgid: errid }); - } else { - // Send error back, user not found. - displayNotificationMessage("Email address already in use", "New Account", 'ServerNotify', 1, errid, args); - } - return; - } - } // Check if we exceed the maximum number of user accounts db.isMaxType(newuserdomain.limits.maxuseraccounts, 'user', newuserdomain.id, function (maxExceed) {