Added saslprep module when using MongoDB.

Ylian Saint-Hilaire committed Apr 24, 2020 at 13:45 UTC 459bbd4f1fe16ccf98b069b0145aaefd8bab876c
1 file changed +1 -1
meshcentral.js
+1 -1
@@ -2548,7 +2548,7 @@ function mainStart() {
2548 if (config.letsencrypt != null) { if (nodeVersion < 8) { addServerWarning("Let's Encrypt support requires Node v8.x or higher.", !args.launch); } else { modules.push('acme-client'); } } // Add acme-client module
2549 if (config.settings.mqtt != null) { modules.push('aedes'); } // Add MQTT Modules
2550 if (config.settings.mysql != null) { modules.push('mysql'); } // Add MySQL, official driver.
2551 - if (config.settings.mongodb != null) { modules.push('mongodb'); } // Add MongoDB, official driver.
2551 + if (config.settings.mongodb != null) { modules.push('mongodb'); modules.push('saslprep'); } // Add MongoDB, official driver.
2552 if (config.settings.mariadb != null) { modules.push('mariadb'); } // Add MariaDB, official driver.
2553 if (config.settings.vault != null) { modules.push('node-vault'); } // Add official HashiCorp's Vault module.
2554 if (config.settings.plugins != null) { modules.push('semver'); } // Required for version compat testing and update checks