summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-09-29 09:30:32 +0000
committerErmal Luçi <eri@pfsense.org>2009-09-29 09:30:32 +0000
commit167443591d82be0f23a2e8690fb6095ea0775045 (patch)
treed226ab9efcb8b95c025998a9fecfd09ec645e31c /usr/local/captiveportal
parentd6a891da5a4c6718eeb1a6907a0ac3712a968906 (diff)
downloadpfsense-167443591d82be0f23a2e8690fb6095ea0775045.zip
pfsense-167443591d82be0f23a2e8690fb6095ea0775045.tar.gz
No need to rewrite the captiveportal database when there is concurrent login! Small optimization.
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-xusr/local/captiveportal/index.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php
index dd12911..3875446 100755
--- a/usr/local/captiveportal/index.php
+++ b/usr/local/captiveportal/index.php
@@ -371,11 +371,10 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut
captiveportal_logportalauth($username,$clientmac,$clientip,$type,"RADIUS ACCOUNTING FAILED");
}
-
+ /* rewrite information to database */
+ captiveportal_write_db($cpdb);
}
- /* rewrite information to database */
- captiveportal_write_db($cpdb);
if ($captiveshouldunlock == true)
unlock($cplock);
OpenPOWER on IntegriCloud