mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 22:55:52 -05:00
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
1747ff7550
commit
414d9b9561
11
meshuser.js
11
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user