Added option to turn off email verification.
Ylian Saint-Hilaire committed
Nov 18, 2020 at 21:11 UTC
43e8bcbe4a6ad157316d533fc37f2b32188b1c88
3 files changed
+5
-3
meshcentral-config-schema.json
+2
-1
@@ -538,7 +538,8 @@
538
"from": { "type": "string", "format": "email" },
539
"tls": { "type": "boolean" },
540
"tlscertcheck": { "type": "boolean" },
541
- "tlsstrict": { "type": "boolean" }
541
+ "tlsstrict": { "type": "boolean" },
542
+ "verifyemail": { "type": "boolean", "default": true, "description": "When set to false, the email format and DNS MX record are not checked." }
543
},
544
"required": [ "host", "port", "from", "tls" ]
545
},
meshmail.js
+1
@@ -363,6 +363,7 @@ module.exports.CreateMeshMail = function (parent) {
363
// Check the email domain DNS MX record.
364
obj.approvedEmailDomains = {};
365
obj.checkEmail = function (email, func) {
366
+ if (parent.config.smtp.verifyemail === false) { func(true); return; }
367
var emailSplit = email.split('@');
368
if (emailSplit.length != 2) { func(false); return; }
369
if (obj.approvedEmailDomains[emailSplit[1]] === true) { func(true); return; }
public/scripts/agent-desktop-0.0.2.js
+2
-2
@@ -534,13 +534,13 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) {
534
obj.xxMouseWheel = function (e) { if (obj.State == 3) { obj.SendMouseMsg(obj.KeyAction.SCROLL, e); return false; } return true; }
535
obj.xxKeyUp = function (e) {
536
if ((e.key != 'Dead') && (obj.State == 3)) {
537
- if ((e.key.length == 1) && ((obj.remoteKeyMap == false) || (obj.debugmode > 0))) { obj.SendKeyUnicode(obj.KeyAction.UP, e.key.charCodeAt(0)); } else { obj.SendKeyMsg(obj.KeyAction.UP, e); }
537
+ if ((e.key.length == 1) && (e.ctrlKey != true) && (e.altKey != true) && ((obj.remoteKeyMap == false) || (obj.debugmode > 0))) { obj.SendKeyUnicode(obj.KeyAction.UP, e.key.charCodeAt(0)); } else { obj.SendKeyMsg(obj.KeyAction.UP, e); }
538
}
539
if (e.preventDefault) e.preventDefault(); if (e.stopPropagation) e.stopPropagation(); return false;
540
}
541
obj.xxKeyDown = function (e) {
542
if ((e.key != 'Dead') && (obj.State == 3)) {
543
- if ((e.key.length == 1) && ((obj.remoteKeyMap == false) || (obj.debugmode > 0))) { obj.SendKeyUnicode(obj.KeyAction.DOWN, e.key.charCodeAt(0)); } else { obj.SendKeyMsg(obj.KeyAction.DOWN, e); }
543
+ if ((e.key.length == 1) && (e.ctrlKey != true) && (e.altKey != true) && ((obj.remoteKeyMap == false) || (obj.debugmode > 0))) { obj.SendKeyUnicode(obj.KeyAction.DOWN, e.key.charCodeAt(0)); } else { obj.SendKeyMsg(obj.KeyAction.DOWN, e); }
544
}
545
if (e.preventDefault) e.preventDefault(); if (e.stopPropagation) e.stopPropagation(); return false;
546
}