bozo-backend/login.py

11 lines
298 B
Python
Raw Normal View History

2023-06-03 10:58:57 -04:00
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']