diff options
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("/") + + |