From d48adbc3f54d835bbd0c43f8db86265a92b4f1d0 Mon Sep 17 00:00:00 2001 From: Harry Culpan Date: Tue, 30 Jun 2026 18:38:19 -0400 Subject: [PATCH] Add missing return after redirect in /login handler Without the return, execution fell through to render the login page into the same response after writing the redirect header. Co-Authored-By: Claude Sonnet 4.6 --- cmd/web/routes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/web/routes.go b/cmd/web/routes.go index 3cbc0a5..5983cb3 100644 --- a/cmd/web/routes.go +++ b/cmd/web/routes.go @@ -39,6 +39,7 @@ func routes(r *chi.Mux) { r.Get("/login", func(w http.ResponseWriter, r *http.Request) { if ValidateJWTFromCookie(r, appKey) { http.Redirect(w, r, "/setup", http.StatusSeeOther) + return } comp := templates.Login() comp.Render(context.Background(), w)