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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user