Clean up.

Ylian Saint-Hilaire committed Apr 22, 2020 at 22:15 UTC 6633870cc95baa662b4224e6c141a8fce196b1be
4 files changed +9 -5
meshcentral.js
+1 -4
@@ -1327,10 +1327,7 @@ function CreateMeshCentralServer(config, args) {
1327 // Setup SMS gateway
1328 if (config.sms != null) {
1329 obj.smsserver = require('./meshsms.js').CreateMeshSMS(obj);
1330 - if (obj.smsserver != null) {
1331 - //obj.smsserver.verify();
1332 - if (obj.args.lanonly == true) { addServerWarning("SMS gateway has limited use in LAN mode."); }
1333 - }
1330 + if ((obj.smsserver != null) && (obj.args.lanonly == true)) { addServerWarning("SMS gateway has limited use in LAN mode."); }
1331 }
1332
1333 // Start periodic maintenance
meshsms.js
+1 -1
@@ -57,7 +57,7 @@ module.exports.CreateMeshSMS = function (parent) {
57 if (typeof parent.config.sms.token != 'string') { console.log('Invalid or missing SMS gateway provider token.'); return null; }
58 if (typeof parent.config.sms.from != 'string') { console.log('Invalid or missing SMS gateway provider from.'); return null; }
59
60 - // Setup Twilio
60 + // Setup Plivo
61 var plivo = require('plivo');
62 obj.provider = new plivo.Client(parent.config.sms.id, parent.config.sms.token);
63 break;
package.json
+3
@@ -39,7 +39,10 @@
39 "express": "^4.17.0",
40 "express-handlebars": "^3.1.0",
41 "express-ws": "^4.0.0",
42 + "html-minifier": "^4.0.0",
43 "ipcheck": "^0.1.0",
44 + "jsdom": "^16.2.2",
45 + "minify-js": "0.0.4",
46 "minimist": "^1.2.0",
47 "multiparty": "^4.2.1",
48 "nedb": "^1.8.0",
translate/translate.json
+4
@@ -29746,6 +29746,10 @@
29746 "pt": "✓",
29747 "ru": "✓",
29748 "xloc": [
29749 + "default-mobile.handlebars->container->page_content->column_l->p3->p3info->1->p3AccountActions->3->manageAuthApp->authAppSetupCheck->0",
29750 + "default-mobile.handlebars->container->page_content->column_l->p3->p3info->1->p3AccountActions->3->manageEmail2FA->authEmailSetupCheck->0",
29751 + "default-mobile.handlebars->container->page_content->column_l->p3->p3info->1->p3AccountActions->3->manageOtp->authCodesSetupCheck->0",
29752 + "default-mobile.handlebars->container->page_content->column_l->p3->p3info->1->p3AccountActions->3->managePhoneNumber1->authPhoneNumberCheck->0",
29753 "default.handlebars->container->column_l->p13->p13filetable->p13bigok->0",
29754 "default.handlebars->container->column_l->p2->p2info->p2AccountSecurity->3->manageAuthApp->0->authAppSetupCheck->0",
29755 "default.handlebars->container->column_l->p2->p2info->p2AccountSecurity->3->manageEmail2FA->0->authEmailSetupCheck->0",