summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-12-12 17:31:34 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-12-12 17:31:34 +0000
commit2653f75032d789090ae9a3228de24b10fda3d635 (patch)
treef5ad39b16ee326174ba19bdc474d3e4592594a08 /usr/local/captiveportal
parent56ea4f477a1c94a606ec5833956914a72fd65686 (diff)
downloadpfsense-2653f75032d789090ae9a3228de24b10fda3d635.zip
pfsense-2653f75032d789090ae9a3228de24b10fda3d635.tar.gz
Log an error to system logs when $type is not set.
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