X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FForm%2FType%2FNewUserType.php;fp=src%2FWallabag%2FCoreBundle%2FForm%2FType%2FNewUserType.php;h=0000000000000000000000000000000000000000;hb=03141f9b9548bca117136ba5bdcf811d9e59b155;hp=6a6f63d166428a990d978f65d7ff4a94f0c9171e;hpb=152fcccd4489378a8ed9391e3e191df4aeba6435;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php deleted file mode 100644 index 6a6f63d1..00000000 --- a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php +++ /dev/null @@ -1,58 +0,0 @@ -add('username', TextType::class, [ - 'required' => true, - 'label' => 'config.form_new_user.username_label', - ]) - ->add('plainPassword', RepeatedType::class, [ - 'type' => PasswordType::class, - 'invalid_message' => 'validator.password_must_match', - 'first_options' => ['label' => 'config.form_new_user.password_label'], - 'second_options' => ['label' => 'config.form_new_user.repeat_new_password_label'], - 'constraints' => [ - new Constraints\Length([ - 'min' => 8, - 'minMessage' => 'validator.password_too_short', - ]), - new Constraints\NotBlank(), - ], - 'label' => 'config.form_new_user.plain_password_label', - ]) - ->add('email', EmailType::class, [ - 'label' => 'config.form_new_user.email_label', - ]) - ->add('save', SubmitType::class, [ - 'label' => 'config.form.save', - ]) - ; - } - - public function configureOptions(OptionsResolver $resolver) - { - $resolver->setDefaults([ - 'data_class' => 'Wallabag\UserBundle\Entity\User', - ]); - } - - public function getBlockPrefix() - { - return 'new_user'; - } -}