Login against the mongo database is working

This commit is contained in:
2022-03-13 09:49:28 +01:00
parent da86395744
commit 4db0b1943c
2 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -8,9 +8,9 @@ password = getpass.getpass("Password: ")
mydb = myclient["groclist_db"]
mycol = mydb["groclist_users"]
#mydict = {"username": username, "password": enc_password}
if mycol.find_one({"username": username, "password": password}):
print("login success\n")
# PS: werkt niet # uuid = mycol.find_one({groclist_uuid})
exit()
else:
print("Login Failed")