$builder
->add('name', 'text')
->add('email', 'email')
+ ->add('twoFactorAuthentication', 'checkbox', array('required' => false))
->add('save', 'submit')
->remove('username')
->remove('plainPassword')
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
- 'data_class' => 'Wallabag\CoreBundle\Entity\User',
+ 'data_class' => 'Wallabag\UserBundle\Entity\User',
));
}