From 4310d93996dfd0e8f20bcf9c8fe84b8689651b8a Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Sat, 22 Mar 2025 18:51:45 +0000 Subject: [PATCH] Update code in endpoints/login.post.py --- endpoints/login.post.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/endpoints/login.post.py b/endpoints/login.post.py index c86b27d..1724af7 100644 --- a/endpoints/login.post.py +++ b/endpoints/login.post.py @@ -5,17 +5,17 @@ users = [] # In-memory storage router = APIRouter() @router.post("/login") -async def login( +async def login_demo( username: str = "demo", password: str = "password" ): - """Login endpoint""" + """Demo login endpoint""" user = next((u for u in users if u["username"] == username), None) if not user or user["password"] != password: raise HTTPException(status_code=400, detail="Invalid credentials") return { - "message": "Login successful", + "message": "Login successful (demo)", "user": username, "token": "dummy_jwt_token_123", "features": {