mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-07-10 10:04:23 +02:00
Fix Error Delete PPPOE User
This commit is contained in:
parent
a33b299811
commit
3b85e752af
1 changed files with 2 additions and 2 deletions
|
@ -204,12 +204,12 @@ class Mikrotik
|
||||||
'/ppp secret print .proplist=name',
|
'/ppp secret print .proplist=name',
|
||||||
RouterOS\Query::where('name', $username)
|
RouterOS\Query::where('name', $username)
|
||||||
);
|
);
|
||||||
$userName = $client->sendSync($printRequest)->getProperty('name');
|
$id = $client->sendSync($printRequest)->getProperty('.id');
|
||||||
|
|
||||||
$removeRequest = new RouterOS\Request('/ppp/secret/remove');
|
$removeRequest = new RouterOS\Request('/ppp/secret/remove');
|
||||||
$client(
|
$client(
|
||||||
$removeRequest
|
$removeRequest
|
||||||
->setArgument('numbers', $userName)
|
->setArgument('numbers', $id)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue