Fixed login bug

This commit is contained in:
Jason Streifling 2024-10-04 11:51:24 +02:00
parent 533053aef0
commit 298ea458ca

View File

@ -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)