blob: e5f718674ab940d7e2cd33a4ed6c37d2ef88fcc9 (
plain)
1
2
3
4
5
6
7
8
9
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("/")
|