diff options
author | Marina Jäntti <mjantti@local> | 2023-11-01 02:45:15 +0200 |
---|---|---|
committer | Marina Jäntti <mjantti@local> | 2023-11-01 02:45:15 +0200 |
commit | d67248c6cab9145ad88d5c16584b58abc7055676 (patch) | |
tree | cd655a78837e2908ae42e8b58e904c2603a49e2a /nick.py | |
parent | 59a6f10326bc785b84620426c3e5b1405ab6ca39 (diff) |
Just initial structure and testing out cookies
Diffstat (limited to 'nick.py')
-rw-r--r-- | nick.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -0,0 +1,10 @@ +from app import app +from flask import render_template, session, request, redirect + +@app.route("/nick",methods=["POST"]) +def set_nick(): + nick = request.form["nick"] + session["nick"] = nick + return redirect("/") + + |