undo #5452 and #6036 commits

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458 2024-04-19 11:48:49 +01:00
parent 1747ff7550
commit 414d9b9561
1 changed files with 0 additions and 11 deletions

View File

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