summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-10-04 22:42:58 +0000
committerErmal Luçi <eri@pfsense.org>2009-10-04 22:42:58 +0000
commit59318e0fa43c2f9dbf4451e9e284281cf2755268 (patch)
tree2b1640f79c5d5570b64e918d0e28487ac5e06410 /usr/local/captiveportal
parent827a786427be71269f9bcc43bbb3e7b3b135430e (diff)
downloadpfsense-59318e0fa43c2f9dbf4451e9e284281cf2755268.zip
pfsense-59318e0fa43c2f9dbf4451e9e284281cf2755268.tar.gz
Make the username comparison for CP case insensitive. Feature-imported-from: m0n0
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-xusr/local/captiveportal/index.php2
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");
OpenPOWER on IntegriCloud