Allow adding/changing user with password hash via v1/users API

This commit is contained in:
binwiederhier 2025-05-24 09:31:57 -04:00
parent 9edab24d4c
commit 4dc3b38c95
4 changed files with 87 additions and 16 deletions

View file

@ -256,6 +256,7 @@ type apiStatsResponse struct {
type apiUserAddOrUpdateRequest struct {
Username string `json:"username"`
Password string `json:"password"`
Hash string `json:"hash"`
Tier string `json:"tier"`
// Do not add 'role' here. We don't want to add admins via the API.
}