summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2017-05-22 16:10:08 -0400
committerjim-p <jimp@pfsense.org>2017-05-22 16:10:08 -0400
commitd80812af5dafe616e7ea33b3a7ea12413c87bdf4 (patch)
treea0c0d6abd080d12795b73e690857e715124cf4d0 /src
parentbc07c19263afbb43b4e1f8a3ad318a0d6e7ff6fb (diff)
downloadpfsense-d80812af5dafe616e7ea33b3a7ea12413c87bdf4.zip
pfsense-d80812af5dafe616e7ea33b3a7ea12413c87bdf4.tar.gz
Select "No Authentication" for a portal zone by default, since it is the default behavior, but the GUI requires a value to be set. Fixes #7591
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/services_captiveportal.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/usr/local/www/services_captiveportal.php b/src/usr/local/www/services_captiveportal.php
index d486b70..699f2b0 100644
--- a/src/usr/local/www/services_captiveportal.php
+++ b/src/usr/local/www/services_captiveportal.php
@@ -685,13 +685,13 @@ $form->add($section);
$section = new Form_Section('Authentication');
$section->addClass('Authentication');
-$group = new Form_Group('*Authentication method');
+$group = new Form_Group('*Authentication Method');
$group->add(new Form_Checkbox(
'auth_method',
null,
'No Authentication',
- $pconfig['auth_method'] == 'none',
+ $pconfig['auth_method'] == 'none' || empty($pconfig['auth_method']),
'none'
))->displayasRadio();
@@ -711,6 +711,8 @@ $group->add(new Form_Checkbox(
'radius'
))->displayasRadio();
+$group->setHelp('Select an Authentication Method to use for this zone. One method must be selected.');
+
$section->add($group);
$section->addInput(new Form_Checkbox(
OpenPOWER on IntegriCloud