Merge branch 'update_user2' into 'master'

fix accidental removal in update_user

See merge request kasm-technologies/internal/KasmVNC!20
pull/89/head
Matthew McClaskey 3 years ago
commit 4f7a42f41e

@ -283,6 +283,8 @@ uint8_t GetAPIMessager::netAddUser(const char name[], const char pw[], const boo
action_data act; action_data act;
memcpy(act.data.user, name, USERNAME_LEN);
act.data.user[USERNAME_LEN - 1] = '\0';
memcpy(act.data.password, pw, PASSWORD_LEN); memcpy(act.data.password, pw, PASSWORD_LEN);
act.data.password[PASSWORD_LEN - 1] = '\0'; act.data.password[PASSWORD_LEN - 1] = '\0';
act.data.owner = 0; act.data.owner = 0;

Loading…
Cancel
Save