features/client-side-settings #3
@ -41,7 +41,7 @@ func (h *Handlers) AuthLoginPost(c echo.Context) error {
|
|||||||
c.SetCookie(cookie)
|
c.SetCookie(cookie)
|
||||||
|
|
||||||
// render
|
// render
|
||||||
return Render(c, http.StatusOK, home.Home())
|
return Render(c, http.StatusOK, auth.LoginPost())
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *Handlers) AuthShowCookies(c echo.Context) error {
|
func (h *Handlers) AuthShowCookies(c echo.Context) error {
|
||||||
|
@ -36,7 +36,3 @@ func (h *Handlers) SettingsPost(c echo.Context) error {
|
|||||||
|
|
||||||
return Render(c, http.StatusOK, home.SettingsUpdated())
|
return Render(c, http.StatusOK, home.SettingsUpdated())
|
||||||
}
|
}
|
||||||
|
|
||||||
//func (h *Handlers) ListHandler(c echo.Context) error {
|
|
||||||
// return Render(c, http.StatusOK, views.List())
|
|
||||||
//}
|
|
||||||
|
@ -4,6 +4,7 @@ type AllCookies struct {
|
|||||||
Username string
|
Username string
|
||||||
Token string
|
Token string
|
||||||
RefreshToken string
|
RefreshToken string
|
||||||
|
DarkMode string
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShowCookie struct {
|
type ShowCookie struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user