Add CSRF protection to all templates

This commit is contained in:
2010-11-05 17:02:00 +00:00
parent 3505ed5d96
commit ab29b9653d
16 changed files with 16 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ below.</p>
<form action="{% url sso.views.service_reset serviceid %}" method="post">
<table>
{{ form.as_table }}
{% csrf_token %}
</table>
<br />
<input type="submit" value="Reset Account" />

View File

@@ -7,6 +7,7 @@
<form action="{% url hr.views.accept_application applicationid %}" method="post">
<table>
{{ form.as_table }}
{% csrf_token %}
</table>
<input type="submit" value="Apply" />
</form>

View File

@@ -9,6 +9,7 @@
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
<input type="submit" value="Apply" />
</form>
{% endblock %}

View File

@@ -7,6 +7,7 @@
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
<input type="submit" value="Apply" />
</form>
{% endblock %}

View File

@@ -7,6 +7,7 @@
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
<input type="submit" value="Apply" />
</form>
{% endblock %}

View File

@@ -8,6 +8,7 @@
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
<input type="submit" value="Apply" />
</form>
{% endblock %}

View File

@@ -11,6 +11,7 @@ The person you are recommending needs to have created their application before y
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
<input type="submit" value="Add Recommendation" />
</form>
{% endblock %}

View File

@@ -12,6 +12,7 @@
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
<button type="submit">Confirm</button>
</form>

View File

@@ -24,6 +24,7 @@
<tr><td>{{ form.password.label_tag }}</td><td>{{ form.password }}</td></tr>
</table>
<br />
{% csrf_token %}
<input type="submit" value="login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>

View File

@@ -11,6 +11,7 @@
<form method="post" action=".">
<table>
{{ form }}
{% csrf_token %}
</table>
<br />
<input type="submit" value="{% trans "Create Account" %}" />

View File

@@ -12,6 +12,7 @@ password below.</p>
{{ form.as_table }}
</table>
<br />
{% csrf_token %}
<input type="submit" value="Reset Account" />
</form>

View File

@@ -12,6 +12,7 @@ page</a> and a optional description.</p>
{{ form.as_table }}
</table>
<br />
{% csrf_token %}
<input type="submit" value="Add Key" />
</form>
<p>Once you have added your EVE API key, don't forget to apply in game, as well as add an application through our

View File

@@ -11,6 +11,7 @@ on from time to time</p>
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
<br />
<input type="submit" value="Add Account" />
</form>

View File

@@ -9,6 +9,7 @@ create a new account until fixed by a Sysop. If you are having issues logging in
<p>If you are sure, then please click confirm</p>
<form action="{% url sso.views.service_del acc.id %}" method="post">
{% csrf_token %}
<input name="confirm-delete" type="hidden" value="1"/>
<input type="submit" value="Confirm Delete" />
</form>

View File

@@ -19,6 +19,7 @@ up to date, if so use the "Refresh" function.</p>
</table>
<br />
<input type="submit" value="Create Account" />
{% csrf_token %}
</form>
<br/>
{% endblock %}

View File

@@ -11,6 +11,7 @@ below.</p>
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
<input type="submit" value="Reset Account" />
</form>