fix anonymous contact submissions
This commit is contained in:
parent
a7ce9c09ab
commit
30d73ef969
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user