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

Validate user email domain when adding a new user

This commit is contained in:
Tung Hoang 2022-03-15 22:11:34 -07:00
parent 306c3314fa
commit bf113954a5
4 changed files with 28 additions and 4 deletions

View file

@ -6437,7 +6437,8 @@
"No phone number for this user",
"SMS succesfuly sent.",
"SMS error",
"SMS error: {0}"
"SMS error: {0}",
"Email domain \"{0}\" is not allowed. Only ({1}) are allowed" // 30
];
if (typeof n.titleid == 'number') { try { n.title = translatedTitles[n.titleid]; } catch (ex) { } }
if (typeof n.msgid == 'number') { try { n.text = translatedMessages[n.msgid]; if (Array.isArray(n.args)) { n.text = format(n.text, n.args[0], n.args[1], n.args[2], n.args[3], n.args[4], n.args[5]); } } catch (ex) { } }