fix: protect dashboard / route with auth check
FlowDeck CI / test (push) Failing after 4s
FlowDeck CI / docker (push) Has been skipped

Dashboard now calls _get_user_or_redirect() before rendering.
Unauthenticated users get redirected to /auth/login?provider=local.
All sensitive routes now protected: /, /workspace, /accounts/settings
This commit is contained in:
2026-07-10 15:58:24 -04:00
parent 7f5ad2aaca
commit 21e7e30b61
+3
View File
@@ -292,6 +292,9 @@ async def dashboard(
search: str = Query(default=""),
show_archived: bool = Query(default=False),
):
auth = _get_user_or_redirect(request)
if isinstance(auth, RedirectResponse):
return auth
try:
repos = await gitea.get_user_repos(page=1, limit=50)
if search: