1
0
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:
Cameron 2012-12-10 13:38:57 -08:00
parent 66e1f000e6
commit 74943d2f53

View File

@ -730,6 +730,9 @@ class e_form
$options = $this->format_options('text', $name, $options); $options = $this->format_options('text', $name, $options);
$options['class'] = vartrue($options['class'],'e-password'); $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 //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)." />"; $text = "<input type='password' name='{$name}' value='{$value}' maxlength='{$maxlength}'".$this->get_attributes($options, $name)." />";