session: use correct policy for rpc_handle_login()
This commit is contained in:
parent
5a101fcc08
commit
4bf5d60f65
1 changed files with 1 additions and 1 deletions
|
@ -1042,7 +1042,7 @@ rpc_handle_login(struct ubus_context *ctx, struct ubus_object *obj,
|
|||
int timeout = RPC_DEFAULT_SESSION_TIMEOUT;
|
||||
int rv = 0;
|
||||
|
||||
blobmsg_parse(acl_policy, __RPC_L_MAX, tb, blob_data(msg), blob_len(msg));
|
||||
blobmsg_parse(login_policy, __RPC_L_MAX, tb, blob_data(msg), blob_len(msg));
|
||||
|
||||
if (!tb[RPC_L_USERNAME] || !tb[RPC_L_PASSWORD]) {
|
||||
rv = UBUS_STATUS_INVALID_ARGUMENT;
|
||||
|
|
Loading…
Add table
Reference in a new issue