Developed an unsafe way to pass arguments. Do not use!
This commit is contained in:
@@ -28,7 +28,10 @@ def groclist_login():
|
|||||||
mycol = mydb["groclist_users"]
|
mycol = mydb["groclist_users"]
|
||||||
username = request.form['username']
|
username = request.form['username']
|
||||||
password = request.form['password']
|
password = request.form['password']
|
||||||
|
name = ""
|
||||||
if mycol.find_one({"username": username, "password": password}):
|
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'))
|
return redirect(url_for('groclist_welcome'))
|
||||||
else:
|
else:
|
||||||
error = 'Username of wachtwoord onbekend. Probeer opnieuw'
|
error = 'Username of wachtwoord onbekend. Probeer opnieuw'
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>Groclist - login page</title>
|
<title>Groclist - login page</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link href="static/bootstrap.min.css" rel="stylesheet" media="screen">
|
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet" media="screen">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|||||||
Reference in New Issue
Block a user