From 33c9b8a30e972b9c6ec5ee7ed6cb6c7f5ee8e2ff Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 19 Apr 2023 03:29:44 +0200 Subject: [PATCH] tmpl: fix 500 on logout --- handlers/handlers.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/handlers/handlers.go b/handlers/handlers.go index c3d40b4..1537c7e 100644 --- a/handlers/handlers.go +++ b/handlers/handlers.go @@ -606,16 +606,12 @@ func Logout() echo.HandlerFunc { tpl := getTmpl("logout.tmpl") err := tpl.Execute(c.Response().Writer, - struct { - AppName string - AppVer string - Title string - DevelMode bool - }{ + page{ AppName: conf.AppName, AppVer: appver, Title: "Logout", DevelMode: conf.DevelMode, + Current: "logout", }, ) if err != nil {