summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal.php
diff options
context:
space:
mode:
authorbcyrill <cyrill@bannwart.info>2012-07-06 01:30:32 +0200
committerbcyrill <cyrill@bannwart.info>2012-07-06 01:30:32 +0200
commit20789ec9f8a19e5ef16e7df03162fd8fd675839e (patch)
treef885541b97cb4df92bf77cd68f0f65b512492a0c /usr/local/www/services_captiveportal.php
parent5ef762e1840b603be5e73973272ad7a350af0edd (diff)
downloadpfsense-20789ec9f8a19e5ef16e7df03162fd8fd675839e.zip
pfsense-20789ec9f8a19e5ef16e7df03162fd8fd675839e.tar.gz
Fix Captive Portal SSL
Diffstat (limited to 'usr/local/www/services_captiveportal.php')
-rwxr-xr-xusr/local/www/services_captiveportal.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php
index c49ea1a..bfd7079 100755
--- a/usr/local/www/services_captiveportal.php
+++ b/usr/local/www/services_captiveportal.php
@@ -257,7 +257,10 @@ if ($_POST) {
$newcp['radmac_enable'] = $_POST['radmac_enable'] ? true : false;
$newcp['radmac_secret'] = $_POST['radmac_secret'] ? $_POST['radmac_secret'] : false;
$newcp['reauthenticateacct'] = $_POST['reauthenticateacct'];
- $newcp['httpslogin'] = $_POST['httpslogin_enable'] ? true : false;
+ if (isset($_POST['httpslogin_enable']))
+ $newcp['httpslogin'] = true;
+ else
+ unset($newcp['httpslogin']);
$newcp['httpsname'] = $_POST['httpsname'];
$newcp['preauthurl'] = $_POST['preauthurl'];
$newcp['peruserbw'] = $_POST['peruserbw'] ? true : false;
OpenPOWER on IntegriCloud