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 <noreply@anthropic.com>
This commit is contained in:
parent
dcf1230414
commit
d48adbc3f5
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue