From 4256a749bd46f37b0f7daf28f2ee09fb9998b723 Mon Sep 17 00:00:00 2001 From: si458 Date: Wed, 18 Dec 2024 19:24:26 +0000 Subject: [PATCH] dont attempt multiple @duosecurity/duo_universal installs Signed-off-by: si458 --- meshcentral.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshcentral.js b/meshcentral.js index 1c279701..502b3b63 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -4225,7 +4225,7 @@ function mainStart() { if (config.domains[i].sessionrecording != null) { sessionRecording = true; } if ((config.domains[i].passwordrequirements != null) && (config.domains[i].passwordrequirements.bancommonpasswords == true)) { wildleek = true; } if ((config.domains[i].newaccountscaptcha != null) && (config.domains[i].newaccountscaptcha !== false)) { captcha = true; } - if ((config.domains[i].passwordrequirements != null) && (typeof config.domains[i].passwordrequirements.duo2factor == 'object')) { passport.push('@duosecurity/duo_universal'); } + if ((config.domains[i].passwordrequirements != null) && (typeof config.domains[i].passwordrequirements.duo2factor == 'object') && (passport.indexOf('@duosecurity/duo_universal') == -1)) { passport.push('@duosecurity/duo_universal'); } } // Build the list of required modules