summaryrefslogtreecommitdiff
path: root/templates/create.html
diff options
context:
space:
mode:
authorKalevi Yypänaho <kyypanah@local>2023-11-27 20:35:57 +0200
committerKalevi Yypänaho <kyypanah@local>2023-11-27 20:35:57 +0200
commitd74aca91c689b54b7b49bbfa7121f458f4caf751 (patch)
treeb13f1ffc7d6f5c816ac16147cc9b8703a17c69c7 /templates/create.html
parentd6c73dbde8a35905a8f29caf9b6d088043a5e78f (diff)
Adding csrf to templates.
Diffstat (limited to 'templates/create.html')
-rw-r--r--templates/create.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/create.html b/templates/create.html
index 21520b5..eb4bccd 100644
--- a/templates/create.html
+++ b/templates/create.html
@@ -25,6 +25,7 @@
<div class="kysScaleSpacer"></div>
<form action="/set/quiz_ready" method="POST">
<input type="text" name="ok" hidden=true>
+<input type="text" name="csrf" value="{{ session.csrf }}" hidden="true">
<input type="submit" value="Valmis" class="kysButton">
</form>
<div class="kysScale">
@@ -34,6 +35,7 @@
{% else %}
<form action="/set/quiz" method="POST">
+<input type="text" name="csrf" value="{{ session.csrf }}" hidden="true">
<input type="submit" value="Aloita uusi kyselmä">
</form>