You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
459 B

3 years ago
from flask import Flask
from flask import request
app = Flask(__name__)
def checkLogin(email, password):
if email == "inaresh.online@gmail.com" and password == "test":
return True
return False
@app.route("/login", methods=['POST'])
def login():
if request.method == "POST":
if checkLogin(request.form['email'], request.form['password']):
return "LOGGEDIN"
else:
return "FAILED"
return "ERROR"