summaryrefslogtreecommitdiff
path: root/routes/base.py
diff options
context:
space:
mode:
authorMarjo Murtomäki <mmurtoma@local>2023-11-27 20:06:59 +0200
committerMarjo Murtomäki <mmurtoma@local>2023-11-27 20:06:59 +0200
commitd6c73dbde8a35905a8f29caf9b6d088043a5e78f (patch)
tree3c01dbdc1da03d25bb999c10496c93a9f1ef4fbe /routes/base.py
parentc618290a4476fd01f46b079e8b95bbc16341cbca (diff)
Fixing so that the code will run again after adding csrf checks.
Diffstat (limited to 'routes/base.py')
-rw-r--r--routes/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/base.py b/routes/base.py
index 6d6dcd8..42d8cdf 100644
--- a/routes/base.py
+++ b/routes/base.py
@@ -1,10 +1,11 @@
from app import app
from flask import render_template,session,request,redirect
import db_actions as D
-from routes.tools import rows2dicts, get_alert, get_nick
+from routes.tools import rows2dicts, get_alert, get_nick, csrf_check
@app.route("/")
def index():
+ session["csrf"] = token_urlsafe()
return app.send_static_file("index.html")
@app.route("/pages/info.html")