From 6cc4708472c5e58a186442d83466b04dd2b9d5b8 Mon Sep 17 00:00:00 2001 From: Patrick Sulzle Date: Mon, 14 Mar 2022 15:27:25 +0100 Subject: [PATCH] Developed an unsafe way to pass arguments. Do not use! --- frontend/app.py | 3 +++ frontend/templates/login.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/app.py b/frontend/app.py index 0f4b93c..22081be 100644 --- a/frontend/app.py +++ b/frontend/app.py @@ -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' diff --git a/frontend/templates/login.html b/frontend/templates/login.html index 3ada399..2ab79f8 100644 --- a/frontend/templates/login.html +++ b/frontend/templates/login.html @@ -2,7 +2,7 @@ Groclist - login page - +