mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Add CSRF protection to all templates
This commit is contained in:
@@ -10,6 +10,7 @@ below.</p>
|
|||||||
<form action="{% url sso.views.service_reset serviceid %}" method="post">
|
<form action="{% url sso.views.service_reset serviceid %}" method="post">
|
||||||
<table>
|
<table>
|
||||||
{{ form.as_table }}
|
{{ form.as_table }}
|
||||||
|
{% csrf_token %}
|
||||||
</table>
|
</table>
|
||||||
<br />
|
<br />
|
||||||
<input type="submit" value="Reset Account" />
|
<input type="submit" value="Reset Account" />
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
<form action="{% url hr.views.accept_application applicationid %}" method="post">
|
<form action="{% url hr.views.accept_application applicationid %}" method="post">
|
||||||
<table>
|
<table>
|
||||||
{{ form.as_table }}
|
{{ form.as_table }}
|
||||||
|
{% csrf_token %}
|
||||||
</table>
|
</table>
|
||||||
<input type="submit" value="Apply" />
|
<input type="submit" value="Apply" />
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
<table>
|
<table>
|
||||||
{{ form.as_table }}
|
{{ form.as_table }}
|
||||||
</table>
|
</table>
|
||||||
|
{% csrf_token %}
|
||||||
<input type="submit" value="Apply" />
|
<input type="submit" value="Apply" />
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
<table>
|
<table>
|
||||||
{{ form.as_table }}
|
{{ form.as_table }}
|
||||||
</table>
|
</table>
|
||||||
|
{% csrf_token %}
|
||||||
<input type="submit" value="Apply" />
|
<input type="submit" value="Apply" />
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
<table>
|
<table>
|
||||||
{{ form.as_table }}
|
{{ form.as_table }}
|
||||||
</table>
|
</table>
|
||||||
|
{% csrf_token %}
|
||||||
<input type="submit" value="Apply" />
|
<input type="submit" value="Apply" />
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
<table>
|
<table>
|
||||||
{{ form.as_table }}
|
{{ form.as_table }}
|
||||||
</table>
|
</table>
|
||||||
|
{% csrf_token %}
|
||||||
<input type="submit" value="Apply" />
|
<input type="submit" value="Apply" />
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ The person you are recommending needs to have created their application before y
|
|||||||
<table>
|
<table>
|
||||||
{{ form.as_table }}
|
{{ form.as_table }}
|
||||||
</table>
|
</table>
|
||||||
|
{% csrf_token %}
|
||||||
<input type="submit" value="Add Recommendation" />
|
<input type="submit" value="Add Recommendation" />
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
<table>
|
<table>
|
||||||
{{ form.as_table }}
|
{{ form.as_table }}
|
||||||
</table>
|
</table>
|
||||||
|
{% csrf_token %}
|
||||||
<button type="submit">Confirm</button>
|
<button type="submit">Confirm</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
<tr><td>{{ form.password.label_tag }}</td><td>{{ form.password }}</td></tr>
|
<tr><td>{{ form.password.label_tag }}</td><td>{{ form.password }}</td></tr>
|
||||||
</table>
|
</table>
|
||||||
<br />
|
<br />
|
||||||
|
{% csrf_token %}
|
||||||
<input type="submit" value="login" />
|
<input type="submit" value="login" />
|
||||||
<input type="hidden" name="next" value="{{ next }}" />
|
<input type="hidden" name="next" value="{{ next }}" />
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
<form method="post" action=".">
|
<form method="post" action=".">
|
||||||
<table>
|
<table>
|
||||||
{{ form }}
|
{{ form }}
|
||||||
|
{% csrf_token %}
|
||||||
</table>
|
</table>
|
||||||
<br />
|
<br />
|
||||||
<input type="submit" value="{% trans "Create Account" %}" />
|
<input type="submit" value="{% trans "Create Account" %}" />
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ password below.</p>
|
|||||||
{{ form.as_table }}
|
{{ form.as_table }}
|
||||||
</table>
|
</table>
|
||||||
<br />
|
<br />
|
||||||
|
{% csrf_token %}
|
||||||
<input type="submit" value="Reset Account" />
|
<input type="submit" value="Reset Account" />
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ page</a> and a optional description.</p>
|
|||||||
{{ form.as_table }}
|
{{ form.as_table }}
|
||||||
</table>
|
</table>
|
||||||
<br />
|
<br />
|
||||||
|
{% csrf_token %}
|
||||||
<input type="submit" value="Add Key" />
|
<input type="submit" value="Add Key" />
|
||||||
</form>
|
</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
|
<p>Once you have added your EVE API key, don't forget to apply in game, as well as add an application through our
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ on from time to time</p>
|
|||||||
<table>
|
<table>
|
||||||
{{ form.as_table }}
|
{{ form.as_table }}
|
||||||
</table>
|
</table>
|
||||||
|
{% csrf_token %}
|
||||||
<br />
|
<br />
|
||||||
<input type="submit" value="Add Account" />
|
<input type="submit" value="Add Account" />
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -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>
|
<p>If you are sure, then please click confirm</p>
|
||||||
|
|
||||||
<form action="{% url sso.views.service_del acc.id %}" method="post">
|
<form action="{% url sso.views.service_del acc.id %}" method="post">
|
||||||
|
{% csrf_token %}
|
||||||
<input name="confirm-delete" type="hidden" value="1"/>
|
<input name="confirm-delete" type="hidden" value="1"/>
|
||||||
<input type="submit" value="Confirm Delete" />
|
<input type="submit" value="Confirm Delete" />
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ up to date, if so use the "Refresh" function.</p>
|
|||||||
</table>
|
</table>
|
||||||
<br />
|
<br />
|
||||||
<input type="submit" value="Create Account" />
|
<input type="submit" value="Create Account" />
|
||||||
|
{% csrf_token %}
|
||||||
</form>
|
</form>
|
||||||
<br/>
|
<br/>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ below.</p>
|
|||||||
<table>
|
<table>
|
||||||
{{ form.as_table }}
|
{{ form.as_table }}
|
||||||
</table>
|
</table>
|
||||||
|
{% csrf_token %}
|
||||||
<input type="submit" value="Reset Account" />
|
<input type="submit" value="Reset Account" />
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user