undo #5452 and #6036 commits
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Apr 19, 2024 at 11:48 UTC
414d9b956105d3e9a2fbaa1c3faf2c15b88c62d2
1 file changed
-11
meshuser.js
-11
@@ -5792,17 +5792,6 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
5792
}
5793
return;
5794
}
5795
- for (var x in parent.users) {
5796
- if (parent.users[x].email == command.email){
5797
- if (command.responseid != null) {
5798
- obj.send({ action: 'adduser', responseid: command.responseid, result: "Email address already in use", msgid: errid });
5799
- } else {
5800
- // Send error back, user not found.
5801
- displayNotificationMessage("Email address already in use", "New Account", 'ServerNotify', 1, errid, args);
5802
- }
5803
- return;
5804
- }
5805
- }
5795
5796
// Check if we exceed the maximum number of user accounts
5797
db.isMaxType(newuserdomain.limits.maxuseraccounts, 'user', newuserdomain.id, function (maxExceed) {