mirror of
https://github.com/airlabspl/uptimemonitor.git
synced 2025-08-30 11:16:31 +02:00
version build
This commit is contained in:
@@ -7,20 +7,23 @@ import (
|
||||
"uptimemonitor"
|
||||
"uptimemonitor/form"
|
||||
"uptimemonitor/html"
|
||||
"uptimemonitor/pkg/version"
|
||||
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
)
|
||||
|
||||
func (h *Handler) LoginPage() http.HandlerFunc {
|
||||
type data struct {
|
||||
Form form.LoginForm
|
||||
Version string
|
||||
Form form.LoginForm
|
||||
}
|
||||
|
||||
tmpl := template.Must(template.ParseFS(html.FS, "layout.html", "login.html"))
|
||||
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
tmpl.Execute(w, data{
|
||||
Form: form.LoginForm{},
|
||||
Version: version.Version,
|
||||
Form: form.LoginForm{},
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user