From d80812af5dafe616e7ea33b3a7ea12413c87bdf4 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 22 May 2017 16:10:08 -0400 Subject: [PATCH] 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 --- src/usr/local/www/services_captiveportal.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/usr/local/www/services_captiveportal.php b/src/usr/local/www/services_captiveportal.php index d486b70541..699f2b0f56 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(