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,

View File

@ -0,0 +1,3 @@
# Config screen
The password fields must match: 'Les deux mots de passe doivent être les mêmes'
Password should by at least 8 chars long: 'Le mot de passe doit contenir au moins 8 caractères'

View File

@ -293,7 +293,7 @@ class ConfigControllerTest extends WallabagCoreTestCase
'new_user[plainPassword][second]' => 'mypassword2',
'new_user[email]' => 'wallace@wallace.me',
),
'This value is not valid',
'The password fields must match',
),
);
}