bozo-backend/login.py
2023-06-04 12:51:13 +02:00

13 lines
376 B
Python

import flask
login = flask.Blueprint("login", __name__, template_folder="templates")
@login.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']