add: login page init
This commit is contained in:
parent
b7a6a1300f
commit
fe109bce1b
10
login.py
Normal file
10
login.py
Normal 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']
|
Loading…
Reference in New Issue
Block a user