diff options
author | jim-p <jimp@pfsense.org> | 2017-05-22 16:10:08 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2017-05-22 16:10:08 -0400 |
commit | d80812af5dafe616e7ea33b3a7ea12413c87bdf4 (patch) | |
tree | a0c0d6abd080d12795b73e690857e715124cf4d0 /src/usr/local/www | |
parent | bc07c19263afbb43b4e1f8a3ad318a0d6e7ff6fb (diff) | |
download | pfsense-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/usr/local/www')
-rw-r--r-- | src/usr/local/www/services_captiveportal.php | 6 |
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( |