mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-25 10:03:01 +03:00
Clean up.
This commit is contained in:
parent
66749fe9b3
commit
52e94df395
@ -1327,10 +1327,7 @@ function CreateMeshCentralServer(config, args) {
|
|||||||
// Setup SMS gateway
|
// Setup SMS gateway
|
||||||
if (config.sms != null) {
|
if (config.sms != null) {
|
||||||
obj.smsserver = require('./meshsms.js').CreateMeshSMS(obj);
|
obj.smsserver = require('./meshsms.js').CreateMeshSMS(obj);
|
||||||
if (obj.smsserver != null) {
|
if ((obj.smsserver != null) && (obj.args.lanonly == true)) { addServerWarning("SMS gateway has limited use in LAN mode."); }
|
||||||
//obj.smsserver.verify();
|
|
||||||
if (obj.args.lanonly == true) { addServerWarning("SMS gateway has limited use in LAN mode."); }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start periodic maintenance
|
// Start periodic maintenance
|
||||||
|
@ -57,7 +57,7 @@ module.exports.CreateMeshSMS = function (parent) {
|
|||||||
if (typeof parent.config.sms.token != 'string') { console.log('Invalid or missing SMS gateway provider token.'); return null; }
|
if (typeof parent.config.sms.token != 'string') { console.log('Invalid or missing SMS gateway provider token.'); return null; }
|
||||||
if (typeof parent.config.sms.from != 'string') { console.log('Invalid or missing SMS gateway provider from.'); return null; }
|
if (typeof parent.config.sms.from != 'string') { console.log('Invalid or missing SMS gateway provider from.'); return null; }
|
||||||
|
|
||||||
// Setup Twilio
|
// Setup Plivo
|
||||||
var plivo = require('plivo');
|
var plivo = require('plivo');
|
||||||
obj.provider = new plivo.Client(parent.config.sms.id, parent.config.sms.token);
|
obj.provider = new plivo.Client(parent.config.sms.id, parent.config.sms.token);
|
||||||
break;
|
break;
|
||||||
|
@ -39,7 +39,10 @@
|
|||||||
"express": "^4.17.0",
|
"express": "^4.17.0",
|
||||||
"express-handlebars": "^3.1.0",
|
"express-handlebars": "^3.1.0",
|
||||||
"express-ws": "^4.0.0",
|
"express-ws": "^4.0.0",
|
||||||
|
"html-minifier": "^4.0.0",
|
||||||
"ipcheck": "^0.1.0",
|
"ipcheck": "^0.1.0",
|
||||||
|
"jsdom": "^16.2.2",
|
||||||
|
"minify-js": "0.0.4",
|
||||||
"minimist": "^1.2.0",
|
"minimist": "^1.2.0",
|
||||||
"multiparty": "^4.2.1",
|
"multiparty": "^4.2.1",
|
||||||
"nedb": "^1.8.0",
|
"nedb": "^1.8.0",
|
||||||
|
@ -29746,6 +29746,10 @@
|
|||||||
"pt": "✓",
|
"pt": "✓",
|
||||||
"ru": "✓",
|
"ru": "✓",
|
||||||
"xloc": [
|
"xloc": [
|
||||||
|
"default-mobile.handlebars->container->page_content->column_l->p3->p3info->1->p3AccountActions->3->manageAuthApp->authAppSetupCheck->0",
|
||||||
|
"default-mobile.handlebars->container->page_content->column_l->p3->p3info->1->p3AccountActions->3->manageEmail2FA->authEmailSetupCheck->0",
|
||||||
|
"default-mobile.handlebars->container->page_content->column_l->p3->p3info->1->p3AccountActions->3->manageOtp->authCodesSetupCheck->0",
|
||||||
|
"default-mobile.handlebars->container->page_content->column_l->p3->p3info->1->p3AccountActions->3->managePhoneNumber1->authPhoneNumberCheck->0",
|
||||||
"default.handlebars->container->column_l->p13->p13filetable->p13bigok->0",
|
"default.handlebars->container->column_l->p13->p13filetable->p13bigok->0",
|
||||||
"default.handlebars->container->column_l->p2->p2info->p2AccountSecurity->3->manageAuthApp->0->authAppSetupCheck->0",
|
"default.handlebars->container->column_l->p2->p2info->p2AccountSecurity->3->manageAuthApp->0->authAppSetupCheck->0",
|
||||||
"default.handlebars->container->column_l->p2->p2info->p2AccountSecurity->3->manageEmail2FA->0->authEmailSetupCheck->0",
|
"default.handlebars->container->column_l->p2->p2info->p2AccountSecurity->3->manageEmail2FA->0->authEmailSetupCheck->0",
|
||||||
|
Loading…
Reference in New Issue
Block a user