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) {