1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fixed email validation on admin account creation.

This commit is contained in:
Ylian Saint-Hilaire 2020-04-05 18:13:47 -07:00
parent 85c0490bf6
commit b6f9a422d7
3 changed files with 323 additions and 318 deletions

View file

@ -1492,7 +1492,12 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
// Handle any errors
if (err != null) {
if (command.responseid != null) { try { ws.send(JSON.stringify({ action: 'adduser', responseid: command.responseid, result: err })); } catch (ex) { } }
if (command.responseid != null) {
try { ws.send(JSON.stringify({ action: 'adduser', responseid: command.responseid, result: err })); } catch (ex) { }
} else {
// Send error back, user not found.
displayNotificationMessage(err, 'New Account', 'ServerNotify');
}
break;
}