From 134ccc3a996043b8a4f703471a637ac702a20548 Mon Sep 17 00:00:00 2001 From: Max Value Date: Mon, 9 Dec 2024 05:20:11 +0000 Subject: [PATCH] Fixed auth bug with dict --- index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.py b/index.py index 9e46087..7765fc3 100755 --- a/index.py +++ b/index.py @@ -40,7 +40,7 @@ def check_files(track_id): with open("../secrets.json", "r") as f: users = json.loads(f.read()) -users = {k: generate_password_hash(v) for k: v in users} +users = {k: generate_password_hash(v) for (k, v) in users.items()} @auth.verify_password def verify_password(username, password): -- 2.39.2