diff --git a/app/routes.py b/app/routes.py index d150b44..ced251a 100644 --- a/app/routes.py +++ b/app/routes.py @@ -65,8 +65,8 @@ def index(): ip = 0 # Now check the userid and idpass against the db - print(Config.users.find({"userid": request.form["userid"]})) - print(Config.users.find({"userid": request.form["userid"]})) + print(Config.users.find({"userid": request.form.get('userid')})) + print(Config.users.find({"userid": request.form.get('idpass')})) if Config.users.find({"userid": request.form["userid"]})["userid"] == request.form["userid"] and Config.users.find({"userid": request.form["userid"]})["idpass"] == request.form["idpass"]: # Init variables before they're passed