Add config to hide default passwords or force password change at first login #1355

This commit is contained in:
fit2cloud-chenyw
2026-09-02 16:41:01 +08:00
committed by fit2cloud-chenyw
parent c1d333e62d
commit 4ee923c968
18 changed files with 319 additions and 22 deletions
+1
View File
@@ -16,6 +16,7 @@ class Token(SQLModel):
access_token: str
token_type: str = "bearer"
platform_info: Optional[dict] = None
need_change_pwd: Optional[bool] = None
class XOAuth2PasswordBearer(OAuth2PasswordBearer):
async def __call__(self, request: Request) -> Optional[str]: