summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced_admin.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-06-18 08:21:27 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-06-18 08:21:27 -0300
commit08f303203418306290d8393f0a77fcba4fab70d5 (patch)
treebc7b04f25cb56e5b0af17affb79fb82da0c8aafc /usr/local/www/system_advanced_admin.php
parent16789caa901f2415da67b10ba6da9eb19e870de8 (diff)
downloadpfsense-08f303203418306290d8393f0a77fcba4fab70d5.zip
pfsense-08f303203418306290d8393f0a77fcba4fab70d5.tar.gz
Change the option for webconfig login autocomplete from opt-in to opt-out, also bump config version and write a function to keep the current status on upgrades
Diffstat (limited to 'usr/local/www/system_advanced_admin.php')
-rw-r--r--usr/local/www/system_advanced_admin.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr/local/www/system_advanced_admin.php b/usr/local/www/system_advanced_admin.php
index b9874c5..d9fd453 100644
--- a/usr/local/www/system_advanced_admin.php
+++ b/usr/local/www/system_advanced_admin.php
@@ -59,7 +59,7 @@ $pconfig['noantilockout'] = isset($config['system']['webgui']['noantilockout']);
$pconfig['nodnsrebindcheck'] = isset($config['system']['webgui']['nodnsrebindcheck']);
$pconfig['nohttpreferercheck'] = isset($config['system']['webgui']['nohttpreferercheck']);
$pconfig['beast_protection'] = isset($config['system']['webgui']['beast_protection']);
-$pconfig['noautocomplete'] = isset($config['system']['webgui']['noautocomplete']);
+$pconfig['loginautocomplete'] = isset($config['system']['webgui']['loginautocomplete']);
$pconfig['althostnames'] = $config['system']['webgui']['althostnames'];
$pconfig['enableserial'] = $config['system']['enableserial'];
$pconfig['serialspeed'] = $config['system']['serialspeed'];
@@ -178,10 +178,10 @@ if ($_POST) {
else
unset($config['system']['webgui']['beast_protection']);
- if ($_POST['noautocomplete'] == "yes")
- $config['system']['webgui']['noautocomplete'] = true;
+ if ($_POST['loginautocomplete'] == "yes")
+ $config['system']['webgui']['loginautocomplete'] = true;
else
- unset($config['system']['webgui']['noautocomplete']);
+ unset($config['system']['webgui']['loginautocomplete']);
if ($_POST['althostnames'])
$config['system']['webgui']['althostnames'] = $_POST['althostnames'];
@@ -404,12 +404,12 @@ function prot_change() {
<tr>
<td width="22%" valign="top" class="vncell"><?=gettext("WebGUI Login Autocomplete"); ?></td>
<td width="78%" class="vtable">
- <input name="noautocomplete" type="checkbox" id="noautocomplete" value="yes" <?php if ($pconfig['noautocomplete']) echo "checked=\"checked\""; ?> />
- <strong><?=gettext("Disable webConfigurator login autocomplete"); ?></strong>
+ <input name="loginautocomplete" type="checkbox" id="loginautocomplete" value="yes" <?php if ($pconfig['loginautocomplete']) echo "checked=\"checked\""; ?> />
+ <strong><?=gettext("Enable webConfigurator login autocomplete"); ?></strong>
<br />
- <?php echo gettext("When this is unchecked, login credentials for the webConfigurator " .
+ <?php echo gettext("When this is checked, login credentials for the webConfigurator " .
"may be saved by the browser. While convenient, some security standards require this to be disabled. " .
- "Check this box to disable autocomplete on the login form so that browsers will not prompt to save credentials (NOTE: Some browsers do not respect this option). ");
+ "Check this box to enable autocomplete on the login form so that browsers will prompt to save credentials (NOTE: Some browsers do not respect this option). ");
?>
</td>
</tr>
OpenPOWER on IntegriCloud