diff options
author | jim-p <jim@pingle.org> | 2010-04-12 15:00:16 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2010-04-12 15:00:16 -0400 |
commit | c062a711147e64c8c5e6681617d06cded8afe6c8 (patch) | |
tree | 3537e68a8861f097450f3423841535ad6d549e6c /usr/local | |
parent | 5ce63c3e8e028dfd59ee5f32a504772b458d717c (diff) | |
download | pfsense-c062a711147e64c8c5e6681617d06cded8afe6c8.zip pfsense-c062a711147e64c8c5e6681617d06cded8afe6c8.tar.gz |
Fix wizard handling of password fields. Ticket #500.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/wizard.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/wizard.php b/usr/local/www/wizard.php index 860e8c5..e5d3a8d 100755 --- a/usr/local/www/wizard.php +++ b/usr/local/www/wizard.php @@ -471,14 +471,18 @@ function showchange() { break; case "password": - if(!$field['dontdisplayname']) { + if ($field['displayname']) { + echo "<td width=\"22%\" align=\"right\" class=\"vncellreq\">\n"; + echo $field['displayname']; + echo ":</td>\n"; + } else if(!$field['dontdisplayname']) { echo "<td width=\"22%\" align=\"right\" class=\"vncellreq\">\n"; echo fixup_string($field['name']); echo ":</td>\n"; } if(!$field['dontcombinecells']) echo "<td class=\"vtable\">"; - echo "<input class='formfld password' id='" . $name . "' name='" . $name . "' value='" . $value . "' type='password' "; + echo "<input class='formfld pwd' id='" . $name . "' name='" . $name . "' value='" . $value . "' type='password' "; if($field['size']) echo " size='" . $field['size'] . "' "; echo ">\n"; |