]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Form/Type/NewUserType.php
fix labels on new user prompt
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Form / Type / NewUserType.php
index ffbe9ba27b6a33209fc42aaeac05591d07ac16d0..d8bde17ee2400f881603bf9f189040bb3226930f 100644 (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,