Revision 8bfe17da
Added by Marcos M over 1 year ago
src/etc/inc/captiveportal.inc | ||
---|---|---|
821 | 821 |
if (isset($config['captiveportal'][$cpzone]['noconcurrentlogins'])) { |
822 | 822 |
if (isset($tmpvoucherdb[$emac['username']])) { |
823 | 823 |
$temac = config_get_path("captiveportal/{$cpzone}/passthrumac/{$tmpvoucherdb[$emac['username']]}"); |
824 |
$pipes = captiveportal_get_dn_passthru_pipes($temac['mac']); |
|
825 |
if ($pipes) { |
|
826 |
captiveportal_ether_delete_entry($temac['mac'], 'auth'); |
|
827 |
} |
|
824 |
captiveportal_passthrumac_delete_entry($temac); |
|
828 | 825 |
$writecfg = true; |
829 | 826 |
captiveportal_logportalauth($temac['username'], $temac['mac'], |
830 | 827 |
$temac['ip'], "DUPLICATE {$temac['username']} LOGIN - TERMINATING OLD SESSION"); |
Also available in: Unified diff
Prune old Captive Portal sessions for autoadded MAC. Fix #15299
Use the correct function to delete passthrumac entries. Remove the pipe
check since it's already handled by the function.