mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 10:22:14 +01:00
Merge pull request #1656 from wallabag/v2-fix-new-user-password-prompts
fix labels on new user prompt
This commit is contained in:
commit
7a97c7d06f
@ -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 New Issue
Block a user