main.js: fix captcha selection check

This commit is contained in:
Zankaria 2024-08-03 23:45:53 +02:00
parent fb48c74565
commit 7b98295dcf

View file

@ -248,7 +248,7 @@ function is_dynamic_captcha_enabled() {
function get_captcha_pub_key() {
{% if config.recaptcha %}
return "{{ config.recaptcha_public }}";
{% elseif config.turnstile_public %}
{% elseif config.turnstile %}
return "{{ config.turnstile_public }}";
{% else %}
return null;