Compare commits

...

2 Commits
5.3 ... 5.5

Author SHA1 Message Date
90a08cb731 wrong hash default 2022-04-23 01:24:28 +07:00
5df998874a '/ppp/active/print' 2022-04-23 01:13:17 +07:00
2 changed files with 6 additions and 8 deletions

View File

@ -95,7 +95,7 @@ foreach ($d as $ds){
$client->sendSync($setRequest); $client->sendSync($setRequest);
//remove hotspot active //remove hotspot active
$onlineRequest = new RouterOS\Request('/ppp/secret/print'); $onlineRequest = new RouterOS\Request('/ppp/active/print');
$onlineRequest->setArgument('.proplist', '.id'); $onlineRequest->setArgument('.proplist', '.id');
$onlineRequest->setQuery(RouterOS\Query::where('name', $c['username'])); $onlineRequest->setQuery(RouterOS\Query::where('name', $c['username']));
$id = $client->sendSync($onlineRequest)->getProperty('.id'); $id = $client->sendSync($onlineRequest)->getProperty('.id');
@ -110,5 +110,3 @@ foreach ($d as $ds){
echo " : ACTIVE \r\n"; echo " : ACTIVE \r\n";
} }
} }
?>

View File

@ -205,7 +205,7 @@ VALUES
1, 1,
'admin', 'admin',
'Administrator', 'Administrator',
'YWRtaW46ODNlNDA2MGUtNzhlMS00ZmU1LTk5NzctYWVlY2NkNDZhMmI4', '7c4a8d09ca3762af61e59520943dc26494f8941b',
'Admin', 'Admin',
'Active', 'Active',
'2015-10-30 18:27:02', '2015-10-30 18:27:02',