mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-31 04:13:49 +01:00
fix oversights introduced in captcha;
This commit is contained in:
parent
1672646213
commit
cd5c57f717
@ -222,7 +222,7 @@ function getCookie(cookie_name) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
{% endraw %}
|
{% endverbatim %}
|
||||||
{% if config.captcha.dynamic %}
|
{% if config.captcha.dynamic %}
|
||||||
function is_dynamic_captcha_enabled() {
|
function is_dynamic_captcha_enabled() {
|
||||||
let cookie = get_cookie('require-captcha');
|
let cookie = get_cookie('require-captcha');
|
||||||
@ -230,7 +230,7 @@ function is_dynamic_captcha_enabled() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function get_captcha_pub_key() {
|
function get_captcha_pub_key() {
|
||||||
{% if config.captcha.provider === 'recaptcha' %}
|
{% if config.captcha.provider == 'recaptcha' %}
|
||||||
return "{{ config.captcha.recaptcha.sitekey }}";
|
return "{{ config.captcha.recaptcha.sitekey }}";
|
||||||
{% else %}
|
{% else %}
|
||||||
return null;
|
return null;
|
||||||
@ -250,7 +250,7 @@ function init_dynamic_captcha() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% raw %}
|
{% verbatim %}
|
||||||
|
|
||||||
function highlightReply(id) {
|
function highlightReply(id) {
|
||||||
if (typeof window.event != "undefined" && event.which == 2) {
|
if (typeof window.event != "undefined" && event.which == 2) {
|
||||||
|
@ -100,7 +100,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if config.captcha.enabled %}
|
{% if config.captcha.provider == 'native' %}
|
||||||
<tr class='captcha'>
|
<tr class='captcha'>
|
||||||
<th>
|
<th>
|
||||||
{% trans %}Verification{% endtrans %}
|
{% trans %}Verification{% endtrans %}
|
||||||
@ -115,7 +115,7 @@
|
|||||||
</noscript>
|
</noscript>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% elseif config.new_thread_capt %}
|
{% elseif config.captcha.native.new_thread_capt %}
|
||||||
{% if not id %}
|
{% if not id %}
|
||||||
<tr class='captcha'>
|
<tr class='captcha'>
|
||||||
<th>
|
<th>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user