1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

accept value parameter for password fields

This commit is contained in:
secretr
2012-03-12 13:02:17 +00:00
parent 8f7fe64b7a
commit 0910e76327

View File

@@ -366,11 +366,11 @@ class e_form
return 'Ready to use upload form fields, optional - file list view'; return 'Ready to use upload form fields, optional - file list view';
} }
function password($name, $maxlength = 50, $options = array()) function password($name, $value = '', $maxlength = 50, $options = array())
{ {
$options = $this->format_options('text', $name, $options); $options = $this->format_options('text', $name, $options);
//never allow id in format name-value for text fields //never allow id in format name-value for text fields
return "<input type='password' name='{$name}' value='' maxlength='{$maxlength}'".$this->get_attributes($options, $name)." />"; return "<input type='password' name='{$name}' value='{$value}' maxlength='{$maxlength}'".$this->get_attributes($options, $name)." />";
} }
// autoexpand done // autoexpand done