diff options
Diffstat (limited to 'pkg/webui')
-rw-r--r-- | pkg/webui/html/login.html | 3 | ||||
-rw-r--r-- | pkg/webui/state.go | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/pkg/webui/html/login.html b/pkg/webui/html/login.html index 4ff0265..deb6d4a 100644 --- a/pkg/webui/html/login.html +++ b/pkg/webui/html/login.html @@ -3,7 +3,8 @@ <form action="/login" method="post"> <fieldset> <div class="field border label{{ if .Forbidden }} invalid{{ end}}"> - <input id="username" + <input autofocus + id="username" name="username" type="text" value="{{ .Username }}" diff --git a/pkg/webui/state.go b/pkg/webui/state.go index 141d2d8..2ad1597 100644 --- a/pkg/webui/state.go +++ b/pkg/webui/state.go @@ -15,7 +15,7 @@ func handleStateGET(db *database.DB) http.Handler { type StatesData struct { Page *Page State *model.State - Usernames map[int]string + Usernames map[string]string Versions []model.Version } return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |