removePpoeActive based pppoe_username

This commit is contained in:
Ibnu Maksum
2024-08-08 14:44:42 +07:00
parent ce7d8859b0
commit d830ba4e06
3 changed files with 6 additions and 3 deletions

View File

@ -60,11 +60,13 @@ class MikrotikPppoe
//disconnect then
if(isset($isChangePlan) && $isChangePlan){
$this->removePpoeActive($client, $customer['username']);
if (!empty($customer['pppoe_username'])) {
$this->removePpoeActive($client, $customer['pppoe_username']);
}
}
}
}
function remove_customer($customer, $plan)
{
$mikrotik = $this->info($plan['routers']);

View File

@ -697,5 +697,6 @@
"PPPoE_Username_already_used_by_another_customer": "PPPoE Username already used by another customer",
"just_now": "just now",
"Not_Working_for_freeradius": "Not Working for freeradius",
"User_Cannot_change_this__only_admin__if_it_Empty_it_will_use_Customer_Credentials": "User Cannot change this, only admin. if it Empty it will use Customer Credentials"
"User_Cannot_change_this__only_admin__if_it_Empty_it_will_use_Customer_Credentials": "User Cannot change this, only admin. if it Empty it will use Customer Credentials",
"Failed_to_buy_package": "Failed to buy package"
}