summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-xusr/local/captiveportal/index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php
index 71bf804..2f6970f 100755
--- a/usr/local/captiveportal/index.php
+++ b/usr/local/captiveportal/index.php
@@ -334,6 +334,10 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut
$radiusservers[0]['key'],
$clientip,
$clientmac);
+
+ if(!type)
+ log_error("WARNING: \$type has not been set in captiveportal/index.php");
+
if ($acct_val == 1)
captiveportal_logportalauth($username,$clientmac,$clientip,$type,"RADIUS ACCOUNTING FAILED");
}
OpenPOWER on IntegriCloud