Skip to content

Commit

Permalink
undo Ylianst#5452 and Ylianst#6036 commits
Browse files Browse the repository at this point in the history
Signed-off-by: si458 <simonsmith5521@gmail.com>
  • Loading branch information
si458 committed Apr 19, 2024
1 parent 1747ff7 commit 414d9b9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions meshuser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 414d9b9

Please sign in to comment.