X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FForm%2FType%2FNewUserType.php;h=985cb55b229a4a35dd6b3cfa8739ae8731048487;hb=ec00964de22a338d8f814c5440f8e09f542fdbbf;hp=313a9aae8c9f8619b0c273815efd86572e533393;hpb=0e7971d8354b0923d2e8f38690b9fe46e695dd93;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php index 313a9aae..985cb55b 100644 --- a/src/Wallabag/CoreBundle/Form/Type/NewUserType.php +++ b/src/Wallabag/CoreBundle/Form/Type/NewUserType.php @@ -1,9 +1,10 @@ add('username', 'text') + ->add('username', 'text', array('required' => true)) ->add('password', 'password', array( 'constraints' => array( new Constraints\Length(array( @@ -21,12 +22,12 @@ class NewUserType extends AbstractType new Constraints\NotBlank(), ), )) - ->add('email', 'text') + ->add('email', 'email') ->add('save', 'submit') ; } - public function setDefaultOptions(OptionsResolverInterface $resolver) + public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults(array( 'data_class' => 'Wallabag\CoreBundle\Entity\User',