fix labels on new user prompt

fix tests

nl

add translation validation length
This commit is contained in:
Thomas Citharel
2016-02-08 22:49:17 +01:00
parent ae5b37ef2e
commit 6fa4be38eb
3 changed files with 7 additions and 1 deletions

View File

@ -20,6 +20,9 @@ class NewUserType extends AbstractType
->add('username', TextType::class, array('required' => true))
->add('plainPassword', RepeatedType::class, array(
'type' => PasswordType::class,
'invalid_message' => 'The password fields must match',
'first_options' => array('label' => 'Password'),
'second_options' => array('label' => 'Repeat new password'),
'constraints' => array(
new Constraints\Length(array(
'min' => 8,