1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Fixed Password regex pattern

This commit is contained in:
Cameron
2012-12-12 02:11:38 -08:00
parent 28f3a7461f
commit 408f005f04

View File

@@ -733,7 +733,7 @@ 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['pattern'] = vartrue($options['pattern'],'[\S]{4,}');
$options['required'] = vartrue($options['required'], 1);
//never allow id in format name-value for text fields
@@ -1124,7 +1124,6 @@ class e_form
function submit($name, $value, $options = array())
{
$options = $this->format_options('submit', $name, $options);
$options['class'] = vartrue($options['class'],'button btn');
return "<input type='submit' name='{$name}' value='{$value}'".$this->get_attributes($options, $name, $value)." />";
}