summaryrefslogtreecommitdiff
path: root/routes/analyse.py
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 /routes/analyse.py
parentd6c73dbde8a35905a8f29caf9b6d088043a5e78f (diff)
Adding csrf to templates.
Diffstat (limited to 'routes/analyse.py')
-rw-r--r--routes/analyse.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/analyse.py b/routes/analyse.py
index 70d852b..3b59ae7 100644
--- a/routes/analyse.py
+++ b/routes/analyse.py
@@ -94,7 +94,8 @@ def analyse():
@app.route("/set/compare",methods=["POST"])
def set_compare():
- csrf_check("/#analyse")
+ if csrf_check():
+ return redirect("/#analyse")
session["anal_user1"] = request.form["user1"]
session["anal_user2"] = request.form["user2"]
return redirect("/#analyse")