From fe4293b02f3881eaa2167490a4f2142520a73158 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Sun, 14 Apr 2024 19:38:45 -0700 Subject: [PATCH] minor changes --- handlers/auth.go | 2 +- handlers/home.go | 4 ---- models/auth.go | 1 + 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/handlers/auth.go b/handlers/auth.go index a9edb38..29692c8 100644 --- a/handlers/auth.go +++ b/handlers/auth.go @@ -41,7 +41,7 @@ func (h *Handlers) AuthLoginPost(c echo.Context) error { c.SetCookie(cookie) // render - return Render(c, http.StatusOK, home.Home()) + return Render(c, http.StatusOK, auth.LoginPost()) } func (h *Handlers) AuthShowCookies(c echo.Context) error { diff --git a/handlers/home.go b/handlers/home.go index 2c216ed..b358034 100644 --- a/handlers/home.go +++ b/handlers/home.go @@ -36,7 +36,3 @@ func (h *Handlers) SettingsPost(c echo.Context) error { return Render(c, http.StatusOK, home.SettingsUpdated()) } - -//func (h *Handlers) ListHandler(c echo.Context) error { -// return Render(c, http.StatusOK, views.List()) -//} diff --git a/models/auth.go b/models/auth.go index af18023..050559c 100644 --- a/models/auth.go +++ b/models/auth.go @@ -4,6 +4,7 @@ type AllCookies struct { Username string Token string RefreshToken string + DarkMode string } type ShowCookie struct {