mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Complete replacement of the WebAuthn 2 factor support.
This commit is contained in:
parent
36ac790452
commit
e00cbf33d3
9 changed files with 576 additions and 241 deletions
|
@ -1748,8 +1748,7 @@ function mainStart(args) {
|
|||
if (config.settings.no2factorauth !== true) {
|
||||
// Setup YubiKey OTP if configured
|
||||
if (yubikey == true) { modules.push('yubikeyotp'); } // Add YubiKey OTP support
|
||||
// if not all SSPI, WebAuthn/FIDO2 or U2F support depending on the NodeJS version. FIDO2 does not work below NodeJS 8.x
|
||||
if (allsspi == false) { modules.push('otplib'); if (nodeVersion >= 8) { modules.push('@davedoesdev/fido2-lib'); } else { modules.push('authdog'); } }
|
||||
if (allsspi == false) { modules.push('otplib'); } // Google Authenticator support
|
||||
}
|
||||
|
||||
// Install any missing modules and launch the server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue