diff options
author | Julien Dessaux | 2025-01-31 20:53:29 +0100 |
---|---|---|
committer | Julien Dessaux | 2025-01-31 20:53:29 +0100 |
commit | ab548d249b56988823cc91fa46ad7bfff0d75250 (patch) | |
tree | bc2c5c5e480a462eab19d873382bf11abacdffbe /pkg/webui | |
parent | feat(webui): bootstrap account settings management with light and dark mode (diff) | |
download | tfstated-ab548d249b56988823cc91fa46ad7bfff0d75250.tar.gz tfstated-ab548d249b56988823cc91fa46ad7bfff0d75250.tar.bz2 tfstated-ab548d249b56988823cc91fa46ad7bfff0d75250.zip |
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) { |