Skip to content

Commit

Permalink
mer tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelambda committed May 4, 2024
1 parent d0f6b44 commit 701b04c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/templates/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<fieldset>
<legend>Upload PR</legend>
<form method="post" enctype="multipart/form-data">
{{ form.csrf_token() }}
{{ form.hidden_tag() }}

<div class="center-row row responsive-label">
Expand Down
3 changes: 2 additions & 1 deletion src/templates/change_password.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<fieldset>
<legend>Change password for {{ user.username }}</legend>
<form action="" method="post">
{{ form.csrf_token() }}
{{ form.hidden_tag() }}
<p>
{{ form.password.label }}<br>
Expand All @@ -23,4 +24,4 @@
<p>{{ form.submit() }}</p>
</form>
</fieldset>
{% endblock %}
{% endblock %}
3 changes: 2 additions & 1 deletion src/templates/modify_pr.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<fieldset>
<legend>Modify PR {{ pr.desc }}</legend>
<form action="" method="post">
{{ form.csrf_token() }}
{{ form.hidden_tag() }}
<p>
{{ form.start_date.label }}<br>
Expand All @@ -30,4 +31,4 @@
<p>{{ form.submit() }}</p>
</form>
</fieldset>
{% endblock %}
{% endblock %}
3 changes: 2 additions & 1 deletion src/templates/modify_user.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<fieldset>
<legend>Modify user {{ user.username }}</legend>
<form action="" method="post">
{{ form.csrf_token() }}
{{ form.hidden_tag() }}
<p>
{{ form.password.label }}<br>
Expand All @@ -27,4 +28,4 @@
<p>{{ form.submit() }}</p>
</form>
</fieldset>
{% endblock %}
{% endblock %}
1 change: 1 addition & 0 deletions src/templates/users.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<fieldset>
<legend>Create user</legend>
<form method="post" enctype="multipart/form-data">
{{ form.csrf_token() }}
{{ form.hidden_tag() }}

<div class="center-row row responsive-label">
Expand Down

0 comments on commit 701b04c

Please sign in to comment.