From: Max Value Date: Mon, 9 Dec 2024 05:20:11 +0000 (+0000) Subject: Fixed auth bug with dict X-Git-Url: https://git.ozva.co.uk/?a=commitdiff_plain;h=134ccc3a996043b8a4f703471a637ac702a20548;p=critters-api Fixed auth bug with dict --- 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):