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

This commit is contained in:
jim-p 2017-05-22 16:10:08 -04:00
parent bc07c19263
commit d80812af5d

View File

@ -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(