fix radius rest pppoe

This commit is contained in:
iBNu Maksum 2024-12-25 21:12:58 +07:00
parent 1ea971d3f5
commit c527f1cc7c
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -207,8 +207,10 @@ try {
if (!$tur) {
// if check if pppoe_username
$c = ORM::for_table('tbl_customers')->select('username')->select('pppoe_password')->whereRaw("BINARY pppoe_username = '$username'")->find_one();
$username = $c['username'];
$tur = ORM::for_table('tbl_user_recharges')->whereRaw("BINARY username = '$username'")->find_one();
if($c){
$username = $c['username'];
$tur = ORM::for_table('tbl_user_recharges')->whereRaw("BINARY username = '$username'")->find_one();
}
}
if ($tur) {
if (!$isVoucher && !$isCHAP) {