vienalatina/apps/board/templates
Claude 0c4a98b0e0
Stop offering a logout button that was never a logout
"Cerrar sesión del todo" linked straight to /user/logout on the account
server. That route is POST-only — verified in Gitea 1.22's router, which
registers m.Post("/logout", auth.SignOut) and no GET at all — so the
click was a GET, the answer was 404, and the session it promised to end
carried on untouched. It shipped in 724dada, in the commit whose message
was about not overstating what Salir does.

It cannot be repaired by turning the link into a form: the POST needs a
CSRF token belonging to that other domain, unreadable from here by
design. So the page stops pretending and gives the instruction — go
there, open the profile menu, choose Cerrar sesión — which is what the
small print underneath already said.

server-setup.md contained the whole answer and contradicted itself: one
paragraph states the logout is POST-only "so a link cannot trigger it",
and two paragraphs later promises "the link that finishes the job". The
code followed the wrong half.

Worse, a test asserted "/user/logout" in page, so the suite was
enforcing the defect rather than catching it. That assertion is now
inverted, and a template guard fails the build if any template links
there again.

199 tests.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
2026-09-28 15:43:32 +00:00
..
_attachments.html Let members post pictures, and back them up 2026-09-28 09:02:18 +00:00
base.html Write the site from the members area instead of Decap 2026-09-25 15:07:31 +00:00
comment_form.html Add a members area: roles and an internal board 2026-09-22 10:57:18 +00:00
content_form.html Write the site from the members area instead of Decap 2026-09-25 15:07:31 +00:00
content_list.html Write the site from the members area instead of Decap 2026-09-25 15:07:31 +00:00
error.html Add a members area: roles and an internal board 2026-09-22 10:57:18 +00:00
logged_out.html Stop offering a logout button that was never a logout 2026-09-28 15:43:32 +00:00
login.html Stop showing members the name of the software behind the login 2026-09-25 19:30:06 +00:00
member_created.html Hand the mail settings to the container, and rebuild on deploy 2026-09-25 18:42:39 +00:00
member_new.html Stop showing members the name of the software behind the login 2026-09-25 19:30:06 +00:00
members.html Give Gitea a deploy path, and invitations a second chance 2026-09-28 15:15:35 +00:00
recover.html Refuse before the form, not after the password 2026-09-25 19:20:44 +00:00
set_password.html Refuse before the form, not after the password 2026-09-25 19:20:44 +00:00
thread_form.html Let members post pictures, and back them up 2026-09-28 09:02:18 +00:00
thread.html Let members post pictures, and back them up 2026-09-28 09:02:18 +00:00
threads.html Add a members area: roles and an internal board 2026-09-22 10:57:18 +00:00