Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added some CSRF tokens where needed.

  • Loading branch information...
commit a91018bb0dbd75337805433d5557a9a70c18e2fc 1 parent 991db2a
Jacob Kaplan-Moss jacobian authored
1  django_website/templates/aggregator/delete-confirm.html
View
@@ -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 %}
1  django_website/templates/aggregator/edit-feed.html
View
@@ -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>
3  django_website/templates/contact/foundation.html
View
@@ -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 %}
1  django_website/templates/registration/registration_form.html
View
@@ -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 %}
Please sign in to comment.
Something went wrong with that request. Please try again.