Files
StarPunk/docs/design/v2.3.2/2026-10-31-header-admin-link.md
PhilandClaude Opus 5.5 0716984958 docs: Bring all documentation up to date for v2.10.1
- architecture/: overview, technology stack, auth (OIDC + built-in
  IndieAuth), syndication (POSSE) rewritten; new database.md,
  deployment.md and indieweb-protocols.md; legacy stack marked historical
- decisions/: reconstructed ADR-060 and ADR-063; 31 status corrections
  (superseded auth ADRs, proposed -> accepted); INDEX rebuilt
- design/: reconstructed the v1.6.0 documents the webmention code cites;
  reports for 18 v2 releases without a design folder; INDEX rebuilt
- projectplan/: BACKLOG rewritten (shipped items removed, open issues from
  the reviews added); RELEASE.md for v2.0.0-v2.10.1; INDEX
- standards/: development setup (uv, tests, DEV_MODE), testing (CI test
  stage), git and release flow, versioning, coding standards, cookies
- README, CLAUDE.md, .env.example (every setting the code reads, with
  defaults) brought up to date
- 137 broken links repaired (old absolute paths, moved files); stale ADR
  references in code comments corrected (comments only)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 12:40:19 -07:00

27 lines
820 B
Markdown

# v2.3.2: Header shows "Admin" when logged in
> Reconstructed on 2026-11-03 from the changelog and git history. Commit `c51cf72`.
## Summary
Only `/admin` routes checked the session, so public pages never knew the
admin was logged in and the header always said "Log in".
## Changes
- `starpunk/__init__.py`, `before_request`: if the request carries a
`starpunk_session` cookie, `auth.verify_session()` is called and
`g.user` / `g.me` are set. Requests without the cookie don't touch the
database; a verification error is treated as logged out.
- `templates/base.html`: the logged-in link reads "Admin" (was
"Dashboard").
## Tests
`tests/test_public_style.py`: with a valid session the header shows
"Admin" and no "Log in".
## Notes
Every public request with a session cookie now costs a session lookup.