mirror of
https://github.com/jackeilles/xygt.git
synced 2024-11-26 00:32:40 +01:00
messed up checking
This commit is contained in:
parent
c9d8cc16f8
commit
3e277708f8
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ def index():
|
||||||
ip = 0
|
ip = 0
|
||||||
|
|
||||||
# Now check the userid and idpass against the db
|
# Now check the userid and idpass against the db
|
||||||
if Config.users.find({"userid": request.form["userid"]}) and Config.users.find({"idpass": request.form["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
|
# Init variables before they're passed
|
||||||
userid = request.form.get("userid") if request.form.get("userid") else None
|
userid = request.form.get("userid") if request.form.get("userid") else None
|
||||||
|
|
Loading…
Reference in a new issue