From f9df3367520e6a31282e3e5e426404d8caf74ba6 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Thu, 20 Mar 2025 00:53:32 +0100 Subject: [PATCH] feat: Update endpoint login --- endpoints/login.post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/login.post.py b/endpoints/login.post.py index a965889..df5aa08 100644 --- a/endpoints/login.post.py +++ b/endpoints/login.post.py @@ -10,7 +10,7 @@ async def login_demo( password: str = "password" ): """Demo login endpoint""" - user = fake_users_db.get(username + user = fake_users_db.get(username) if not user or user["password"] != password: raise HTTPException(status_code=400, detail="Invalid credentials")