From 298ea458cad20087484a2ac3e9f03f2327187ebf Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Fri, 4 Oct 2024 11:51:24 +0200 Subject: [PATCH] Fixed login bug --- cmd/frontend/sessions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/frontend/sessions.go b/cmd/frontend/sessions.go index f698564..c5bdd07 100644 --- a/cmd/frontend/sessions.go +++ b/cmd/frontend/sessions.go @@ -67,7 +67,7 @@ func HomePage(c *b.Config, db *b.DB, s *b.CookieStore) http.HandlerFunc { return } } else { - session, err := getSession(w, r, c, s) + session, err := s.Get(r, "cookie") if err != nil { log.Println(err) http.Error(w, err.Error(), http.StatusInternalServerError)