diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-10-04 22:42:58 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-10-04 22:42:58 +0000 |
commit | 59318e0fa43c2f9dbf4451e9e284281cf2755268 (patch) | |
tree | 2b1640f79c5d5570b64e918d0e28487ac5e06410 /usr | |
parent | 827a786427be71269f9bcc43bbb3e7b3b135430e (diff) | |
download | pfsense-59318e0fa43c2f9dbf4451e9e284281cf2755268.zip pfsense-59318e0fa43c2f9dbf4451e9e284281cf2755268.tar.gz |
Make the username comparison for CP case insensitive. Feature-imported-from: m0n0
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/captiveportal/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index 3875446..76cdfd1 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -291,7 +291,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut } elseif ((isset($config['captiveportal']['noconcurrentlogins'])) && ($username != 'unauthenticated')) { /* on the same username */ - if ($cpdb[$i][4] == $username) { + if (strcasecmp($cpdb[$i][4], $username) == 0) { /* This user was already logged in so we disconnect the old one */ captiveportal_disconnect($cpdb[$i],$radiusservers,13); captiveportal_logportalauth($cpdb[$i][4],$cpdb[$i][3],$cpdb[$i][2],"CONCURRENT LOGIN - TERMINATING OLD SESSION"); |