X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FForm%2FType%2FUserInformationType.php;h=e3196d9cc868def3cd4f633f705b1182e8041e05;hb=40f59b219bfd438bdaf4f36227a43f2b674ece00;hp=8fead9a183d691d21274a56da09857e0f9172f4b;hpb=4d6e818e406417295298e76529ef761ddd8b1385;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php index 8fead9a1..e3196d9c 100644 --- a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php +++ b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php @@ -1,22 +1,30 @@ add('name', 'text', array('required' => true)) + ->add('name', 'text') ->add('email', 'email') ->add('save', 'submit') + ->remove('username') + ->remove('plainPassword') ; } - public function setDefaultOptions(OptionsResolverInterface $resolver) + public function getParent() + { + return 'fos_user_registration'; + } + + public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults(array( 'data_class' => 'Wallabag\CoreBundle\Entity\User',