fix anonymous contact submissions
This commit is contained in:
parent
a7ce9c09ab
commit
30d73ef969
|
@ -20,9 +20,11 @@
|
|||
<script>
|
||||
$('#captcha').on({
|
||||
click: function() {
|
||||
$('#csrf').val(getCookie('csrftoken'))
|
||||
var token = $('input[name="csrfmiddlewaretoken"]')[1].value;
|
||||
$('#csrf').val(token)
|
||||
$('#contact').submit()
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% csrf_token %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user