ppoe_password Set to package

This commit is contained in:
Ibnu Maksum
2023-08-14 13:21:41 +07:00
parent 5b7e84fb75
commit d9bda444e9
8 changed files with 41 additions and 7 deletions

View File

@ -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;