From bad3087cc760e6968ab929fc0590ceb9f2475340 Mon Sep 17 00:00:00 2001 From: adro Date: Fri, 18 Feb 2022 14:44:46 +0100 Subject: [PATCH] Small improvements - Login page status 200 - Don't ask for style - Don't ask for favicon --- web/template/page.html.tmpl | 2 +- web/web.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/template/page.html.tmpl b/web/template/page.html.tmpl index d7ca027..4976644 100644 --- a/web/template/page.html.tmpl +++ b/web/template/page.html.tmpl @@ -4,7 +4,7 @@ - + {{ .Title }} diff --git a/web/web.go b/web/web.go index 84c39ba..b21d1b1 100644 --- a/web/web.go +++ b/web/web.go @@ -64,7 +64,7 @@ func Page(c echo.Context, code int, title string, page string, data interface{}) func index(c echo.Context) error { session, err := c.Cookie("session") if err != nil || checkAuth(session.Value) != nil { - return Page(c, 401, "Login", "login.html.tmpl", nil) + return Page(c, 200, "Login", "login.html.tmpl", nil) } else { return Page(c, 200, "Device", "device.html.tmpl", config.Config) }