From 701b04ca98ba5e2d1032ef2bd68dd834e97d2962 Mon Sep 17 00:00:00 2001 From: Rachel Lambda Samuelsson Date: Sat, 4 May 2024 23:04:02 +0200 Subject: [PATCH] mer tokens --- src/templates/admin.html | 1 + src/templates/change_password.html | 3 ++- src/templates/modify_pr.html | 3 ++- src/templates/modify_user.html | 3 ++- src/templates/users.html | 1 + 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/templates/admin.html b/src/templates/admin.html index 82bfcb4..e91f1ce 100644 --- a/src/templates/admin.html +++ b/src/templates/admin.html @@ -43,6 +43,7 @@
Upload PR
+ {{ form.csrf_token() }} {{ form.hidden_tag() }}
diff --git a/src/templates/change_password.html b/src/templates/change_password.html index 867c982..cc9b977 100644 --- a/src/templates/change_password.html +++ b/src/templates/change_password.html @@ -5,6 +5,7 @@
Change password for {{ user.username }} + {{ form.csrf_token() }} {{ form.hidden_tag() }}

{{ form.password.label }}
@@ -23,4 +24,4 @@

{{ form.submit() }}

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/src/templates/modify_pr.html b/src/templates/modify_pr.html index de1670d..41f4b69 100644 --- a/src/templates/modify_pr.html +++ b/src/templates/modify_pr.html @@ -5,6 +5,7 @@
Modify PR {{ pr.desc }}
+ {{ form.csrf_token() }} {{ form.hidden_tag() }}

{{ form.start_date.label }}
@@ -30,4 +31,4 @@

{{ form.submit() }}

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/src/templates/modify_user.html b/src/templates/modify_user.html index f9d0105..613f798 100644 --- a/src/templates/modify_user.html +++ b/src/templates/modify_user.html @@ -5,6 +5,7 @@
Modify user {{ user.username }}
+ {{ form.csrf_token() }} {{ form.hidden_tag() }}

{{ form.password.label }}
@@ -27,4 +28,4 @@

{{ form.submit() }}

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/src/templates/users.html b/src/templates/users.html index 4d22c98..713d380 100644 --- a/src/templates/users.html +++ b/src/templates/users.html @@ -38,6 +38,7 @@
Create user
+ {{ form.csrf_token() }} {{ form.hidden_tag() }}