mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-12-03 06:22:32 -05:00
extend POST /users/:id
Now you can set a password for a user while the server is running,
e.g. via the following command:
```shell
curl \
-H 'Content-Type: application/json' \
-d '{"update": {"password": "asdf"}}' \
--unix-socket /var/lib/moonfire-nvr/sock \
http://nvr/api/users/1
```
This commit is contained in:
@@ -72,4 +72,8 @@ message Permissions {
|
||||
bool read_camera_configs = 2;
|
||||
|
||||
bool update_signals = 3;
|
||||
|
||||
// Administrate user accounts: create, delete accounts; modify passwords of
|
||||
// accounts other than the caller's own.
|
||||
bool admin_users = 4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user