diff options
author | Marjo Murtomäki <mmurtoma@local> | 2023-11-27 19:56:22 +0200 |
---|---|---|
committer | Marjo Murtomäki <mmurtoma@local> | 2023-11-27 19:56:22 +0200 |
commit | c618290a4476fd01f46b079e8b95bbc16341cbca (patch) | |
tree | 9b74d598584d25b7b032d53da919d3338d0eb191 /routes/question.py | |
parent | f965d5d1f799037cd49accae9256ed42b8c17ccb (diff) |
Adding csrf checking to every post handler.
Diffstat (limited to 'routes/question.py')
-rw-r--r-- | routes/question.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/question.py b/routes/question.py index ad31993..981e15d 100644 --- a/routes/question.py +++ b/routes/question.py @@ -14,6 +14,7 @@ def question(): @app.route("/set/question",methods=["POST"]) def new_question(): + csrf_check("/#create") try: question = request.form["question"] neg_ans = request.form["neg_ans"] |