bozo-backend/login.py

13 lines
374 B
Python

import flask
page = flask.Blueprint("login", __name__, template_folder="templates")
@page.route("/login", methods=['POST', 'GET'])
def show():
if (flask.request.method == ['GET']):
return (flask.render_template("login/login.html"))
else:
return ("bozo")
email = flask.request.form['email']
password = flask.request.form['password']