]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Form/Type/NewUserType.php
Merge pull request #1167 from wallabag/v2-api-bundle
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Form / Type / NewUserType.php
index da30ccd93ade8b0a0cdbc68bb9064eb4581ff7a0..a12fff2b9b850514a6d0296bed79877550a640f1 100644 (file)
@@ -12,7 +12,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(
@@ -22,7 +22,7 @@ class NewUserType extends AbstractType
                     new Constraints\NotBlank(),
                 ),
             ))
-            ->add('email', 'text')
+            ->add('email', 'email')
             ->add('save', 'submit')
         ;
     }