Commit d2fca8d6 authored by fred's avatar fred
Browse files

enable csrf token on subscribe form

parent 0ce3c974
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
<form method="post" action="{% url 'newsletter-subscribe' %}" <form method="post" action="{% url 'newsletter-subscribe' %}"
class="marged" id="subscribe-form"> class="marged" id="subscribe-form">
{% csrf_token %}
<p>{% trans 'Every Monday, the news of the Panik week:' %}</p> <p>{% trans 'Every Monday, the news of the Panik week:' %}</p>
<input required name="email" type="email" placeholder="votre adresse email"> <input required name="email" type="email" placeholder="votre adresse email">
<div style="display: none"><label><input type="checkbox" name="validation">Cocher empêchera la création.</input></label> <div style="display: none"><label><input type="checkbox" name="validation">Cocher empêchera la création.</input></label>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment