1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-12 01:50:48 +01:00

Updated reCAPTCHA v2 to use api.js method

This commit is contained in:
Daniel Saunders 2017-07-24 03:40:56 -04:00
parent 78fb0a25a4
commit 7a43a3ea34
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,8 @@
{% 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;

View File

@ -74,7 +74,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>