summaryrefslogtreecommitdiff
path: root/routes/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'routes/base.py')
-rw-r--r--routes/base.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/routes/base.py b/routes/base.py
index 22245c5..6d6dcd8 100644
--- a/routes/base.py
+++ b/routes/base.py
@@ -25,6 +25,7 @@ def info():
@app.route("/set/nick",methods=["POST"])
def new_nick():
next = "/#"+request.form["caller"] if "caller" in request.form else "/"
+ csrf_check(next)
if "id" in session.keys():
session["alert"]="Sinulla on jo nimimerkki. Käytä sitä."
return redirect(next)