feat: add admin password warning log

This commit is contained in:
Shroominic
2026-01-03 22:12:23 +01:00
parent f1fa7d094f
commit b70b94b9b4
+5
View File
@@ -62,6 +62,11 @@ async def lifespan(_: FastAPI) -> AsyncGenerator[None, None]:
async with create_session() as session:
s = await SettingsService.initialize(session)
if not s.admin_password:
logger.info(
f"Admin password is not set. Visit {s.http_url or 'http://localhost:8000'}/admin to set the password."
)
# Apply app metadata from settings
try:
app.title = s.name