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() {
|
function get_captcha_pub_key() {
|
||||||
{% if config.recaptcha %}
|
{% if config.recaptcha %}
|
||||||
return "{{ config.recaptcha_public }}";
|
return "{{ config.recaptcha_public }}";
|
||||||
|
{% elseif config.turnstile_public %}
|
||||||
|
return "{{ config.turnstile_public }}";
|
||||||
{% else %}
|
{% else %}
|
||||||
return null;
|
return null;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue