mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-10 11:09:31 +00:00
fix labels on new user prompt
fix tests nl add translation validation length
This commit is contained in:
parent
ae5b37ef2e
commit
6fa4be38eb
3 changed files with 7 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -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'
|
|
@ -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',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue