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)