aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/UserInformationType.php')
-rw-r--r--src/Wallabag/CoreBundle/Form/Type/UserInformationType.php17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php
index f491b0ae..799ea39e 100644
--- a/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php
+++ b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php
@@ -15,10 +15,19 @@ class UserInformationType extends AbstractType
15 public function buildForm(FormBuilderInterface $builder, array $options) 15 public function buildForm(FormBuilderInterface $builder, array $options)
16 { 16 {
17 $builder 17 $builder
18 ->add('name', TextType::class) 18 ->add('name', TextType::class, array(
19 ->add('email', EmailType::class) 19 'label' => 'config.form_user.name_label',
20 ->add('twoFactorAuthentication', CheckboxType::class, array('required' => false)) 20 ))
21 ->add('save', SubmitType::class) 21 ->add('email', EmailType::class, array(
22 'label' => 'config.form_user.email_label',
23 ))
24 ->add('twoFactorAuthentication', CheckboxType::class, array(
25 'required' => false,
26 'label' => 'config.form_user.twoFactorAuthentication_label',
27 ))
28 ->add('save', SubmitType::class, array(
29 'label' => 'config.form.save',
30 ))
22 ->remove('username') 31 ->remove('username')
23 ->remove('plainPassword') 32 ->remove('plainPassword')
24 ; 33 ;