Merge branch 'dev' into added-codeql

This commit is contained in:
Ruben Talstra 2025-05-22 10:36:14 +02:00 committed by GitHub
commit 74cdad76ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
158 changed files with 5793 additions and 965 deletions

View file

@ -26,7 +26,17 @@ function loadTurnstileConfig(config, configDefaults) {
options: customTurnstile.options ?? defaults.options,
});
logger.info('Turnstile configuration loaded:\n' + JSON.stringify(loadedTurnstile, null, 2));
const enabled = Boolean(loadedTurnstile.siteKey);
if (enabled) {
logger.info(
'Turnstile is ENABLED with configuration:\n' + JSON.stringify(loadedTurnstile, null, 2),
);
} else {
logger.info('Turnstile is DISABLED (no siteKey provided).');
}
return loadedTurnstile;
}