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