Update code in endpoints/login.post.py
This commit is contained in:
parent
77d9e3ff37
commit
5d331e3468
@ -1,5 +1,4 @@
|
||||
from fastapi import APIRouter, Depends, HTTPException
|
||||
from core.auth import get_current_user_dummy
|
||||
from core.database import fake_users_db
|
||||
|
||||
router = APIRouter()
|
||||
@ -15,11 +14,11 @@ async def login_demo(
|
||||
raise HTTPException(status_code=400, detail="Invalid credentials")
|
||||
|
||||
return {
|
||||
"message": "Login successful (demo)",
|
||||
"message": "User logged in successfully",
|
||||
"user": username,
|
||||
"token": "dummy_jwt_token_123",
|
||||
"features": {
|
||||
"rate_limit": 100,
|
||||
"expires_in": 3600
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user