diff options
author | Ermal <eri@pfsense.org> | 2011-03-04 20:27:45 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-03-04 20:27:45 +0000 |
commit | ce1942d6a3097915948eee340bdc2564ae84ea6b (patch) | |
tree | c242ddf720bfb9089655c08ab3d8cc47a26acfa8 /etc/inc/captiveportal.inc | |
parent | 328c1def40513f3c39e18016e63ed58f5c59a78b (diff) | |
download | pfsense-ce1942d6a3097915948eee340bdc2564ae84ea6b.zip pfsense-ce1942d6a3097915948eee340bdc2564ae84ea6b.tar.gz |
Oops more make code correct.
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index fff5b33..ab3bc2d 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -1689,7 +1689,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut /* This user was already logged in so we disconnect the old one */ captiveportal_disconnect($cpentry,$radiusservers,13); captiveportal_logportalauth($cpentry[4],$cpentry[3],$cpentry[2],"CONCURRENT LOGIN - TERMINATING OLD SESSION"); - unset($cpdb[$sessionid]); + unset($cpdb[$sid]); break; } elseif ((isset($config['captiveportal']['noconcurrentlogins'])) && ($username != 'unauthenticated')) { @@ -1698,7 +1698,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut /* This user was already logged in so we disconnect the old one */ captiveportal_disconnect($cpentry,$radiusservers,13); captiveportal_logportalauth($cpentry[4],$cpentry[3],$cpentry[2],"CONCURRENT LOGIN - TERMINATING OLD SESSION"); - unset($cpdb[$i]); + unset($cpdb[$sid]); break; } } |