Developed an unsafe way to pass arguments. Do not use!

This commit is contained in:
2022-03-14 15:27:25 +01:00
parent 482acca2e0
commit 6cc4708472
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -28,7 +28,10 @@ def groclist_login():
mycol = mydb["groclist_users"]
username = request.form['username']
password = request.form['password']
name = ""
if mycol.find_one({"username": username, "password": password}):
# for user_info in mycol.find({}, {"name": 0}):
# print("Welkom", user_info)
return redirect(url_for('groclist_welcome'))
else:
error = 'Username of wachtwoord onbekend. Probeer opnieuw'