summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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