diff --git a/app/admin.py b/app/admin.py index 44f35b6..f939f5e 100644 --- a/app/admin.py +++ b/app/admin.py @@ -700,13 +700,13 @@ async def login( async def login_validation( request: Request, password: str = Form(), - redirect: str = Form(), + redirect: str | None = Form(None), csrf_check: None = Depends(verify_csrf_token), ) -> RedirectResponse: if not verify_password(password): raise HTTPException(status_code=401) - resp = RedirectResponse(redirect or "/admin/inbox", status_code=302) + resp = RedirectResponse(redirect or "/admin/stream", status_code=302) resp.set_cookie("session", session_serializer.dumps({"is_logged_in": True})) # type: ignore # noqa: E501 return resp diff --git a/app/templates/admin_inbox.html b/app/templates/admin_inbox.html index 721d103..3e0f513 100644 --- a/app/templates/admin_inbox.html +++ b/app/templates/admin_inbox.html @@ -14,6 +14,12 @@ {% endmacro %} +{% if not inbox %} +
Nothing to see yet, start following people in the lookup section.
+