Skip to content

Commit

Permalink
Adding CSRF tokens to forms that need them.
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonsavage committed Sep 21, 2012
1 parent c72dbf4 commit 5edc6d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Expand Up @@ -9,6 +9,7 @@ <h2>{% block title %}Password Change{% endblock %}</h2>

<form method="post" action="">
<table class="formtable">
{% csrf_token %}
{{ form.as_table }}
</table>

Expand Down
Expand Up @@ -8,6 +8,7 @@ <h2>{% block title %}Enter New Password{% endblock %}</h2>
correctly.</p>

<form method="post" action="">
{% csrf_token %}
<table class="formtable">
{{ form.as_table }}
</table>
Expand Down
1 change: 1 addition & 0 deletions apps/users/templates/registration/profile.html
Expand Up @@ -13,6 +13,7 @@ <h2>{% block title %}Edit User Profile{% endblock %}</h2>
{% endif %}

<form method="post">
{% csrf_token %}
<table class="formtable">
{{ django_user_form.as_table }}
{{ user_profile_form.as_table }}
Expand Down

0 comments on commit 5edc6d4

Please sign in to comment.