]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Form/Type/NewUserType.php
changed email fields with the email type and added required parameter on some stuff
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Form / Type / NewUserType.php
index 313a9aae8c9f8619b0c273815efd86572e533393..b7ebe8c24d50fca2b58cab66cdf43ee1f9b4a8ef 100644 (file)
@@ -11,7 +11,7 @@ class NewUserType extends AbstractType
     public function buildForm(FormBuilderInterface $builder, array $options)
     {
         $builder
-            ->add('username', 'text')
+            ->add('username', 'text', array('required' => true))
             ->add('password', 'password', array(
                 'constraints' => array(
                     new Constraints\Length(array(
@@ -21,7 +21,7 @@ class NewUserType extends AbstractType
                     new Constraints\NotBlank(),
                 ),
             ))
-            ->add('email', 'text')
+            ->add('email', 'email')
             ->add('save', 'submit')
         ;
     }