More session recording fixes, OTP on older NodeJS now works.

Ylian Saint-Hilaire committed Mar 11, 2020 at 01:27 UTC bfb0c9c91414975520c967450f282226a8a19027
3 files changed +10 -6
meshcentral.js
+1 -1
@@ -2417,7 +2417,7 @@ function mainStart() {
2417 if (config.settings.no2factorauth !== true) {
2418 // Setup YubiKey OTP if configured
2419 if (yubikey == true) { modules.push('yubikeyotp'); } // Add YubiKey OTP support
2420 - if (allsspi == false) { modules.push('otplib'); } // Google Authenticator support
2420 + if (allsspi == false) { modules.push('otplib@10.2.3'); } // Google Authenticator support (v10 supports older NodeJS versions).
2421 }
2422
2423 // Install any missing modules and launch the server
package.json
+6 -2
@@ -1,6 +1,6 @@
1 {
2 "name": "meshcentral",
3 - "version": "0.4.9-y",
3 + "version": "0.4.9-z",
4 "keywords": [
5 "Remote Management",
6 "Intel AMT",
@@ -29,6 +29,7 @@
29 ],
30 "dependencies": {
31 "archiver": "^3.0.0",
32 + "archiver-zip-encrypted": "^1.0.8",
33 "body-parser": "^1.19.0",
34 "cbor": "^4.1.5",
35 "compression": "^1.7.4",
@@ -45,9 +46,12 @@
46 "multiparty": "^4.2.1",
47 "nedb": "^1.8.0",
48 "node-forge": "^0.8.4",
49 + "node-windows": "^1.0.0-beta.1",
50 + "otplib": "^10.0.0",
51 "ws": "^6.2.1",
52 "xmldom": "^0.1.27",
50 - "yauzl": "^2.10.0"
53 + "yauzl": "^2.10.0",
54 + "yubikeyotp": "^0.2.0"
55 },
56 "devDependencies": {},
57 "repository": {
public/translate.bat
+3 -3
@@ -1,5 +1,5 @@
1 @ECHO OFF
2 CD ..\translate
3 -%LOCALAPPDATA%\..\Roaming\nvm\v12.13.0\node64 translate.js minifyall
4 -%LOCALAPPDATA%\..\Roaming\nvm\v12.13.0\node64 translate.js translateall
5 -%LOCALAPPDATA%\..\Roaming\nvm\v12.13.0\node64 translate.js extractall
3 +%LOCALAPPDATA%\..\Roaming\nvm\v12.13.0\node translate.js minifyall
4 +%LOCALAPPDATA%\..\Roaming\nvm\v12.13.0\node translate.js translateall
5 +%LOCALAPPDATA%\..\Roaming\nvm\v12.13.0\node translate.js extractall
\ No newline at end of file