summaryrefslogtreecommitdiff
path: root/routes/question.py
diff options
context:
space:
mode:
Diffstat (limited to 'routes/question.py')
-rw-r--r--routes/question.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/question.py b/routes/question.py
index de8dc28..42fce8d 100644
--- a/routes/question.py
+++ b/routes/question.py
@@ -14,7 +14,8 @@ def question():
@app.route("/set/question",methods=["POST"])
def new_question():
- csrf_check("/#create")
+ if csrf_check():
+ return redirect("/#create")
try:
question = request.form["question"]
neg_ans = request.form["neg_ans"]