allow $pppoe_username so it will back to customer username
This commit is contained in:
@ -541,11 +541,13 @@ switch ($action) {
|
||||
$userDiff = true;
|
||||
}
|
||||
if ($oldPppoeUsername != $pppoe_username) {
|
||||
if(ORM::for_table('tbl_customers')->where('pppoe_username', $pppoe_username)->find_one()){
|
||||
$msg.= Lang::T('PPPoE Username already used by another customer') . '<br>';
|
||||
}
|
||||
if(ORM::for_table('tbl_customers')->where('username', $pppoe_username)->find_one()){
|
||||
$msg.= Lang::T('PPPoE Username already used by another customer') . '<br>';
|
||||
if(!empty($pppoe_username)){
|
||||
if(ORM::for_table('tbl_customers')->where('pppoe_username', $pppoe_username)->find_one()){
|
||||
$msg.= Lang::T('PPPoE Username already used by another customer') . '<br>';
|
||||
}
|
||||
if(ORM::for_table('tbl_customers')->where('username', $pppoe_username)->find_one()){
|
||||
$msg.= Lang::T('PPPoE Username already used by another customer') . '<br>';
|
||||
}
|
||||
}
|
||||
$pppoeDiff = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user