just added self Registration,

customer must have voucher before register
This commit is contained in:
Ibnu Maksum
2017-03-14 05:15:08 +07:00
parent 2e34fa46e5
commit b6c55ff5a9
10 changed files with 370 additions and 19 deletions

View File

@ -44,6 +44,7 @@ foreach ($d as $ds){
} catch (Exception $e) {
die('Unable to connect to the router.');
}
$printRequest = new RouterOS\Request('/ip/hotspot/user/print');
$printRequest->setArgument('.proplist', '.id');
$printRequest->setQuery(RouterOS\Query::where('name', $c['username']));