mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-29 06:18:10 +02:00
ppoe_password Set to package
This commit is contained in:
parent
5b7e84fb75
commit
d9bda444e9
8 changed files with 41 additions and 7 deletions
|
@ -59,7 +59,11 @@ switch ($action) {
|
|||
} else {
|
||||
if (!$config['radius_mode']) {
|
||||
$client = Mikrotik::getClient($mikrotik['ip_address'], $mikrotik['username'], $mikrotik['password']);
|
||||
Mikrotik::setPpoeUser($client, $c['username'], $npass);
|
||||
if(!empty($d['pppoe_password'])){
|
||||
Mikrotik::setPpoeUser($client, $c['username'], $d['pppoe_password']);
|
||||
}else{
|
||||
Mikrotik::setPpoeUser($client, $c['username'], $npass);
|
||||
}
|
||||
Mikrotik::removePpoeActive($client, $user['username']);
|
||||
}
|
||||
$d->password = $npass;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue