mirror of https://git.48k.eu/ogserver
#915 Validate POST /poweroff REST API parameters
This patch ensures that all required parameters are sent in the request.master
parent
8901505bb5
commit
acf9cdf8d1
|
@ -3862,6 +3862,9 @@ static int og_cmd_poweroff(json_t *element, struct og_msg_params *params)
|
|||
break;
|
||||
}
|
||||
|
||||
if (!og_msg_params_validate(params, OG_REST_PARAM_ADDR))
|
||||
return -1;
|
||||
|
||||
return og_cmd_legacy_send(params, "Apagar", CLIENTE_OCUPADO);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue