Final better listuser
This commit is contained in:
parent
43b7bcebff
commit
95d2da79ab
2
main
2
main
|
@ -512,7 +512,7 @@ async def listusers():
|
||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
data = await request.get_json()
|
data = await request.get_json()
|
||||||
masterkey = data["masterkey"]
|
masterkey = data["masterkey"]
|
||||||
if masterkey == SECRETKEY:
|
if masterkey == SECRET_KEY:
|
||||||
conn = get_db_connection()
|
conn = get_db_connection()
|
||||||
users = conn.execute("SELECT * FROM users").fetchall()
|
users = conn.execute("SELECT * FROM users").fetchall()
|
||||||
conn.close()
|
conn.close()
|
||||||
|
|
Loading…
Reference in New Issue