11 lines
298 B
Python
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']
|