From b55d12bf449d5fc1ace77290de11d1059d9aa835 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Mon, 24 Mar 2025 22:16:13 +0000 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 ed37af6..777f14d 100644 --- a/endpoints/login.post.py +++ b/endpoints/login.post.py @@ -11,7 +11,7 @@ class LoginRequest(BaseModel): @router.post("/login") async def login_demo(request: LoginRequest): - """Demo login endpoint""" + """Demo login endpoint"""hyg user = next((u for u in users if u["username"] == request.username), None) if not user or user["password"] != request.password: raise HTTPException(status_code=400, detail="Invalid credentials")