mirror of
https://github.com/e107inc/e107.git
synced 2025-01-18 05:09:05 +01:00
Make password a required field by default
This commit is contained in:
parent
66e1f000e6
commit
74943d2f53
@ -730,6 +730,9 @@ class e_form
|
||||
|
||||
$options = $this->format_options('text', $name, $options);
|
||||
$options['class'] = vartrue($options['class'],'e-password');
|
||||
$options['pattern'] = vartrue($options['pattern'],'[\w\d]{4,}');
|
||||
$options['required'] = vartrue($options['required'], 1);
|
||||
|
||||
//never allow id in format name-value for text fields
|
||||
$text = "<input type='password' name='{$name}' value='{$value}' maxlength='{$maxlength}'".$this->get_attributes($options, $name)." />";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user