Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
from flask import request, Flask, session
app = Flask(__name__)
@app.route("log_in", methods=["POST"])
def log_in():
if request.form["uname"] == "admin" and request.form["pass"] == "password":
session["logged_in"] = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment