Skip to content

Instantly share code, notes, and snippets.

@Poincare
Created August 26, 2011 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Poincare/1173225 to your computer and use it in GitHub Desktop.
Save Poincare/1173225 to your computer and use it in GitHub Desktop.
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