add: login page init

This commit is contained in:
starnakin 2023-06-03 16:58:57 +02:00
parent b7a6a1300f
commit fe109bce1b
2 changed files with 10 additions and 1 deletions

10
login.py Normal file
View File

@ -0,0 +1,10 @@
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']

View File

@ -6,7 +6,6 @@ app = flask.Flask(__name__)
def home():
return "<p>Hello, World!</p>"
if (__name__ == "__main__"):
app.run()