Fixed 17, check the constraints on the login.
This commit is contained in:
parent
32fb0cb121
commit
b2356bd157
@ -36,12 +36,12 @@ class IDF_Form_Register extends Pluf_Form
|
|||||||
$this->fields['login'] = new Pluf_Form_Field_Varchar(
|
$this->fields['login'] = new Pluf_Form_Field_Varchar(
|
||||||
array('required' => true,
|
array('required' => true,
|
||||||
'label' => __('Your login'),
|
'label' => __('Your login'),
|
||||||
'max_length' => 8,
|
'max_length' => 15,
|
||||||
'min_length' => 3,
|
'min_length' => 3,
|
||||||
'initial' => $login,
|
'initial' => $login,
|
||||||
'help_text' => __('The login must be between 3 and 8 characters long and contains only letters and digits.'),
|
'help_text' => __('The login must be between 3 and 15 characters long and contains only letters and digits.'),
|
||||||
'widget_attrs' => array(
|
'widget_attrs' => array(
|
||||||
'maxlength' => 8,
|
'maxlength' => 15,
|
||||||
'size' => 10,
|
'size' => 10,
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
Loading…
Reference in New Issue
Block a user