Fix remove User

This commit is contained in:
Ibnu Maksum 2023-08-21 14:33:44 +07:00
parent 4b96e2c311
commit 59e1cf7798
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

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