fix anonymous contact submissions

This commit is contained in:
root 2018-03-24 08:55:51 +00:00
parent a7ce9c09ab
commit 30d73ef969

View File

@ -20,9 +20,11 @@
<script> <script>
$('#captcha').on({ $('#captcha').on({
click: function() { click: function() {
$('#csrf').val(getCookie('csrftoken')) var token = $('input[name="csrfmiddlewaretoken"]')[1].value;
$('#csrf').val(token)
$('#contact').submit() $('#contact').submit()
} }
}); });
</script> </script>
{% csrf_token %}
{% endblock %} {% endblock %}