feat: Update endpoint login

This commit is contained in:
Backend IM Bot 2025-03-19 18:10:07 +00:00
parent 6343cbab11
commit 96b995ebc1

View File

@ -9,7 +9,7 @@ async def login_demo(
username: str = "demo",
password: str = "password"
):
"""Demo login endpoint"""
"""Demo loginendpoint"""
user = fake_users_db.get(username)
if not user or user["password"] != password:
raise HTTPException(status_code=400, detail="Invalid credentials")