feat(webui): add accounts username and isAdmin flag edition for admins
All checks were successful
main / main (push) Successful in 1m44s
main / deploy (push) Has been skipped
main / publish (push) Has been skipped

Closes #43
This commit is contained in:
Julien Dessaux 2025-05-03 09:48:53 +02:00
parent 4f68621bad
commit 373f567773
Signed by: adyxax
GPG key ID: F92E51B86E07177E
6 changed files with 111 additions and 50 deletions

View file

@ -51,7 +51,7 @@ func handleAccountsPOST(db *database.DB) http.Handler {
return
}
accountUsername := r.FormValue("username")
isAdmin := r.FormValue("isAdmin")
isAdmin := r.FormValue("is-admin")
page := AccountsPage{
Page: makePage(r, &Page{Title: "New Account", Section: "accounts"}),
Accounts: accounts,