X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FForm%2FType%2FNewUserType.php;h=a12fff2b9b850514a6d0296bed79877550a640f1;hb=2878416f8b4d94fb5e64c2fa61861526a7654d3d;hp=da30ccd93ade8b0a0cdbc68bb9064eb4581ff7a0;hpb=4346a86068781f4acdeb574d7e2af08b77b58ea7;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php index da30ccd9..a12fff2b 100644 --- a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php +++ b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php @@ -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') ; }