summaryrefslogtreecommitdiff
path: root/pkg/webui
diff options
context:
space:
mode:
authorJulien Dessaux2025-01-31 20:53:29 +0100
committerJulien Dessaux2025-01-31 20:53:29 +0100
commitab548d249b56988823cc91fa46ad7bfff0d75250 (patch)
treebc2c5c5e480a462eab19d873382bf11abacdffbe /pkg/webui
parentfeat(webui): bootstrap account settings management with light and dark mode (diff)
downloadtfstated-ab548d249b56988823cc91fa46ad7bfff0d75250.tar.gz
tfstated-ab548d249b56988823cc91fa46ad7bfff0d75250.tar.bz2
tfstated-ab548d249b56988823cc91fa46ad7bfff0d75250.zip
chore(tfstated): change database account id format to uuidv7HEADmain
Diffstat (limited to 'pkg/webui')
-rw-r--r--pkg/webui/html/login.html3
-rw-r--r--pkg/webui/state.go2
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) {