Browse Source

Fixes You look like a bot (reCaptcha window doesn't appear) #159, straight implementation of upstream https://github.com/vichan-devel/vichan/pull/241, the template changes which the previous commit forgot

pull/40/head
Benjamin Southall 5 years ago
parent
commit
33b60b860c
  1. 4
      templates/header.html
  2. 2
      templates/post_form.html

4
templates/header.html

@ -19,7 +19,9 @@
{% for javascript in config.additional_javascript %}<script type="text/javascript" src="{{ config.additional_javascript_url }}{{ javascript }}"></script>{% endfor %}
{% endif %}
{% endif %}
{% if config.recaptcha %}<style type="text/css">{% raw %}
{% if config.recaptcha %}
<script src="//www.google.com/recaptcha/api.js"></script>
<style type="text/css">{% raw %}
#recaptcha_area {
float: none !important;
padding: 0 !important;

2
templates/post_form.html

@ -91,7 +91,7 @@
{{ antibot.html() }}
</th>
<td>
<script type="text/javascript" src="//www.google.com/recaptcha/api/challenge?k={{ config.recaptcha_public }}"></script>
<div class="g-recaptcha" data-sitekey="{{ config.recaptcha_public }}"></div>
{{ antibot.html() }}
</td>
</tr>

Loading…
Cancel
Save