mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-22 08:04:04 +01:00
fix accidental removal in update_user
This commit is contained in:
parent
8422168154
commit
e6cc132874
@ -283,6 +283,8 @@ uint8_t GetAPIMessager::netAddUser(const char name[], const char pw[], const boo
|
||||
|
||||
action_data act;
|
||||
|
||||
memcpy(act.data.user, name, USERNAME_LEN);
|
||||
act.data.user[USERNAME_LEN - 1] = '\0';
|
||||
memcpy(act.data.password, pw, PASSWORD_LEN);
|
||||
act.data.password[PASSWORD_LEN - 1] = '\0';
|
||||
act.data.owner = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user