Small improvements

- Login page status 200
- Don't ask for style
- Don't ask for favicon
This commit is contained in:
adro 2022-02-18 14:44:46 +01:00
parent ecc004edba
commit bad3087cc7
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="data:,">
<title>{{ .Title }}</title>
</head>
<body>

View File

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