diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-09-29 09:30:32 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-09-29 09:30:32 +0000 |
commit | 167443591d82be0f23a2e8690fb6095ea0775045 (patch) | |
tree | d226ab9efcb8b95c025998a9fecfd09ec645e31c /usr/local/captiveportal | |
parent | d6a891da5a4c6718eeb1a6907a0ac3712a968906 (diff) | |
download | pfsense-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-x | usr/local/captiveportal/index.php | 5 |
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); |