mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-07-30 15:54:51 +02:00
check if pppoe customer already used by another customer
This commit is contained in:
parent
a3c255e77a
commit
8ab1939dd9
1 changed files with 6 additions and 0 deletions
|
@ -540,6 +540,12 @@ switch ($action) {
|
|||
}
|
||||
if ($oldPppoeUsername != $pppoe_username) {
|
||||
$pppoeDiff = true;
|
||||
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 ($password != '' && $oldPassPassword != $password) {
|
||||
$passDiff = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue