bozo-backend/login.py
2023-06-03 16:58:57 +02:00

11 lines
298 B
Python

import main
import flask
@main.app.route("/login", methods = ['POST', 'GET'])
def login():
if (flask.request.methods == ['GET']):
return (flask.render_template("login/login.html"))
else:
email = flask.request.form['email']
password = flask.request.form['password']