feat(auth): add admin bootstrap and username login

Initialize admin bootstrap settings during startup, persist username support in auth flows, and align frontend auth requests with local API behavior.
This commit is contained in:
2026-03-24 15:07:19 +08:00
parent 6f594631e9
commit a3aa15d339
13 changed files with 787 additions and 27 deletions

View File

@@ -2,6 +2,7 @@ from pydantic import BaseModel, EmailStr
class UserCreate(BaseModel):
username: str
email: EmailStr
password: str
full_name: str | None = None
@@ -9,6 +10,7 @@ class UserCreate(BaseModel):
class UserOut(BaseModel):
id: str
username: str
email: str
full_name: str | None
is_active: bool