Fix delete PPPOE

This commit is contained in:
Ibnu Maksum 2023-09-07 09:20:31 +07:00
parent 593ca31f18
commit 3833afb3be
No known key found for this signature in database
GPG key ID: 7FC82848810579E5
5 changed files with 19 additions and 16 deletions

View file

@ -113,14 +113,14 @@ switch ($action) {
if ($c['type'] == 'Hotspot') {
if (!$config['radius_mode']) {
$client = Mikrotik::getClient($mikrotik['ip_address'], $mikrotik['username'], $mikrotik['password']);
Mikrotik::removeHotspotUser($client, $c['username']);
Mikrotik::removeHotspotActiveUser($client, $c['username']);
Mikrotik::removeHotspotActiveUser($client, $d['username']);
Mikrotik::removeHotspotUser($client, $d['username']);
}
} else {
if (!$config['radius_mode']) {
$client = Mikrotik::getClient($mikrotik['ip_address'], $mikrotik['username'], $mikrotik['password']);
Mikrotik::removePpoeUser($client, $c['username']);
Mikrotik::removePpoeActive($client, $c['username']);
Mikrotik::removePpoeActive($client, $d['username']);
Mikrotik::removePpoeUser($client, $d['username']);
}
}
try {