From 6fa4be38eb1b42a224b1649736c16b8d4b44d66a Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 8 Feb 2016 22:49:17 +0100 Subject: fix labels on new user prompt fix tests nl add translation validation length --- src/Wallabag/CoreBundle/Form/Type/NewUserType.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Wallabag/CoreBundle/Form') diff --git a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php index ffbe9ba2..d8bde17e 100644 --- a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php +++ b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php @@ -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, -- cgit v1.2.3