forked from leftypol/leftypol
main.js: add dynamic turnstile support
This commit is contained in:
parent
6097849ea2
commit
fb48c74565
1 changed files with 2 additions and 0 deletions
|
@ -248,6 +248,8 @@ function is_dynamic_captcha_enabled() {
|
|||
function get_captcha_pub_key() {
|
||||
{% if config.recaptcha %}
|
||||
return "{{ config.recaptcha_public }}";
|
||||
{% elseif config.turnstile_public %}
|
||||
return "{{ config.turnstile_public }}";
|
||||
{% else %}
|
||||
return null;
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue