From 843a6fe25ac303ceda46450a3f4ac24f69a54ecb Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 7 Feb 2012 20:19:27 +0000 Subject: [PATCH] Fixes #2082. Correct checking of existing session to take into consideration when possible/needed the mac address --- etc/inc/captiveportal.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 971dbac018..beba4874bf 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -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;