Permalink
Browse files

Added some CSRF tokens where needed.

  • Loading branch information...
1 parent 991db2a commit a91018bb0dbd75337805433d5557a9a70c18e2fc @jacobian jacobian committed Sep 8, 2011
View
1 django_website/templates/aggregator/delete-confirm.html
@@ -11,6 +11,7 @@ <h2 class="deck">Really delete {{ feed }}?</h2>
</p>
<form class="wide" action="." method="post">
+ {% csrf_token %}
<p class="submit"><input type="submit" value="Yes, delete the feed."></p>
</form>
{% endblock %}
View
1 django_website/templates/aggregator/edit-feed.html
@@ -10,6 +10,7 @@ <h2 class="deck">Edit {{ feed }}:</h2>
{% endif %}
<form method="POST" action="" id="add_feed_form" class="wide">
+ {% csrf_token %}
{% for field in form %}
<p>
<label id="{{ field.auto_id }}">{{ field.label }} - <span class="help">{{ field.help_text }}</label>
View
3 django_website/templates/contact/foundation.html
@@ -5,6 +5,7 @@
{% block content %}
<h1>Contact the Django Software Foundation</h1>
<form action="." method="post" accept-charset="utf-8" class="wide">
+{% csrf_token %}
<p>
<label for="id_name">Your name:</label>
{% if form.name.errors %}<p class="errors">{{ form.name.errors.as_text }}</p>{% endif %}
@@ -27,4 +28,4 @@
</p>
<p class="submit"><input type="submit" value="Send &rarr;"></p>
</form>
-{% endblock %}
+{% endblock %}
View
1 django_website/templates/registration/registration_form.html
@@ -11,6 +11,7 @@
<h1>Create an account</h1>
<form method="post" action="" class="wide">
+ {% csrf_token %}
<p>
<label for="id_username">Username:</label>
{% if form.username.errors %}

0 comments on commit a91018b

Please sign in to comment.