summaryrefslogtreecommitdiff
path: root/routes/answer.py
diff options
context:
space:
mode:
Diffstat (limited to 'routes/answer.py')
-rw-r--r--routes/answer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/routes/answer.py b/routes/answer.py
index 2fbeec8..6d767be 100644
--- a/routes/answer.py
+++ b/routes/answer.py
@@ -14,6 +14,7 @@ def kys_link(link):
@app.route("/set/answer_id",methods=["POST"])
def answer_id():
next = "/#"+request.form["caller"] if "caller" in request.form else "/"
+ csrf_check(next)
if "id" not in session:
session["alert"] = "Nimimerkkiä ei ole asetettu."
return redirect(next)
@@ -81,6 +82,7 @@ def answer():
@app.route("/set/answers",methods=["POST"])
def set_answers():
+ csrf_check("/#answer")
if "id" not in session:
session["alert"]="Nimimerkkiä ei ole vielä valittu!"
return redirect( "/#answer" )