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

This commit is contained in:
Ylian Saint-Hilaire 2020-03-11 01:27:16 -07:00
parent e09692af39
commit 347755ca0d
3 changed files with 10 additions and 6 deletions

View File

@ -2417,7 +2417,7 @@ function mainStart() {
if (config.settings.no2factorauth !== true) {
// Setup YubiKey OTP if configured
if (yubikey == true) { modules.push('yubikeyotp'); } // Add YubiKey OTP support
if (allsspi == false) { modules.push('otplib'); } // Google Authenticator support
if (allsspi == false) { modules.push('otplib@10.2.3'); } // Google Authenticator support (v10 supports older NodeJS versions).
}
// Install any missing modules and launch the server

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.4.9-y",
"version": "0.4.9-z",
"keywords": [
"Remote Management",
"Intel AMT",
@ -29,6 +29,7 @@
],
"dependencies": {
"archiver": "^3.0.0",
"archiver-zip-encrypted": "^1.0.8",
"body-parser": "^1.19.0",
"cbor": "^4.1.5",
"compression": "^1.7.4",
@ -45,9 +46,12 @@
"multiparty": "^4.2.1",
"nedb": "^1.8.0",
"node-forge": "^0.8.4",
"node-windows": "^1.0.0-beta.1",
"otplib": "^10.0.0",
"ws": "^6.2.1",
"xmldom": "^0.1.27",
"yauzl": "^2.10.0"
"yauzl": "^2.10.0",
"yubikeyotp": "^0.2.0"
},
"devDependencies": {},
"repository": {

View File

@ -1,5 +1,5 @@
@ECHO OFF
CD ..\translate
%LOCALAPPDATA%\..\Roaming\nvm\v12.13.0\node64 translate.js minifyall
%LOCALAPPDATA%\..\Roaming\nvm\v12.13.0\node64 translate.js translateall
%LOCALAPPDATA%\..\Roaming\nvm\v12.13.0\node64 translate.js extractall
%LOCALAPPDATA%\..\Roaming\nvm\v12.13.0\node translate.js minifyall
%LOCALAPPDATA%\..\Roaming\nvm\v12.13.0\node translate.js translateall
%LOCALAPPDATA%\..\Roaming\nvm\v12.13.0\node translate.js extractall