From b70b94b9b4e2e3f4e065a4a02c204eeb0ac6efe0 Mon Sep 17 00:00:00 2001 From: Shroominic Date: Sat, 3 Jan 2026 22:12:23 +0100 Subject: [PATCH] feat: add admin password warning log --- routstr/core/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routstr/core/main.py b/routstr/core/main.py index d36b4447..44ed56a2 100644 --- a/routstr/core/main.py +++ b/routstr/core/main.py @@ -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