mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-07-20 10:04:08 +00:00
Allow adding/changing user with password hash via v1/users API
This commit is contained in:
parent
9edab24d4c
commit
4dc3b38c95
4 changed files with 87 additions and 16 deletions
|
@ -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.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue