From e46f91ed8ed06469a8a4eb61e2c5b0e21ba1a81d Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Thu, 20 Mar 2025 00:46:34 +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 df5aa08..a965889 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")