diff options
| author | Benjamin Southall <applemansigloo@gmail.com> | 2019-08-10 20:54:52 +1000 |
|---|---|---|
| committer | Benjamin Southall <applemansigloo@gmail.com> | 2019-08-10 20:54:52 +1000 |
| commit | 33b60b860c4cb8655047ee11eda49fc92db1b348 (patch) | |
| tree | 5a43713e1f598cf0159c8f25926966d79f2e5391 | |
| parent | 2404e6074c35a527d4792637a427526b9565b71e (diff) | |
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
| -rw-r--r-- | templates/header.html | 4 | ||||
| -rw-r--r-- | templates/post_form.html | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/header.html b/templates/header.html index aecff50b..7f96f241 100644 --- a/templates/header.html +++ b/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; diff --git a/templates/post_form.html b/templates/post_form.html index fea61bbb..f9291f49 100644 --- a/templates/post_form.html +++ b/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> |
