mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fixes #2082. Correct checking of existing session to take into consideration when possible/needed the mac address
This commit is contained in:
parent
5c0d5003b3
commit
843a6fe25a
@ -1742,7 +1742,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut
|
||||
if (empty($cpentry[10]))
|
||||
$cpentry[10] = 'first';
|
||||
/* on the same ip */
|
||||
if($cpentry[2] == $clientip) {
|
||||
if ($cpentry[2] == $clientip && (isset($config['captiveportal'][$cpzone]['nomacfilter']) || empty($cpentry[3]) || $cpentry[3] == $clientmac)) {
|
||||
captiveportal_logportalauth($cpentry[4],$cpentry[3],$cpentry[2],"CONCURRENT LOGIN - REUSING OLD SESSION");
|
||||
$sessionid = $sid;
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user