X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/c7d7cb5720cec3759e68a758f5246e439ff6eb6f..74e99bcadb413f8cb93d9ab8e57a7f2dd47d8447:/Form/RegisterType.php diff --git a/Form/RegisterType.php b/Form/RegisterType.php index 9cf939d..0e0395f 100644 --- a/Form/RegisterType.php +++ b/Form/RegisterType.php @@ -15,7 +15,6 @@ use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\Extension\Core\Type\TelType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; -use Symfony\Component\Validator\Constraints\NotBlank; class RegisterType extends \Rapsys\UserBundle\Form\RegisterType { /** @@ -32,7 +31,7 @@ class RegisterType extends \Rapsys\UserBundle\Form\RegisterType { //Add extra pseudonym field if (!empty($options['pseudonym'])) { - $form->add('pseudonym', TextType::class, ['attr' => ['placeholder' => 'Your pseudonym'], 'constraints' => [new NotBlank(['message' => 'Please provide your pseudonym'])]]); + $form->add('pseudonym', TextType::class, ['attr' => ['placeholder' => 'Your pseudonym'], 'required' => false]); } //Add extra slug field