diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-04-01 21:58:08 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-04-01 21:58:08 +0200 |
commit | e3c34bfc06f3ea266a418d6246560f15d3f73e2a (patch) | |
tree | 6c6465b6e936b0d38d0d3fdc489fb9e576a5e09c /src/Wallabag/CoreBundle/Form | |
parent | d6fa2f70ac3c798b28ce33c6c143f45c09c74062 (diff) | |
parent | c844dc0c50bb4f1044154401310af25eb21b0f11 (diff) | |
download | wallabag-e3c34bfc06f3ea266a418d6246560f15d3f73e2a.tar.gz wallabag-e3c34bfc06f3ea266a418d6246560f15d3f73e2a.tar.zst wallabag-e3c34bfc06f3ea266a418d6246560f15d3f73e2a.zip |
Merge pull request #1164 from wallabag/v2-remove-username-in-config
Remove ability to change username
Diffstat (limited to 'src/Wallabag/CoreBundle/Form')
-rw-r--r-- | src/Wallabag/CoreBundle/Form/Type/UserInformationType.php (renamed from src/Wallabag/CoreBundle/Form/Type/UserType.php) | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/UserType.php b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php index b479a0b5..617722db 100644 --- a/src/Wallabag/CoreBundle/Form/Type/UserType.php +++ b/src/Wallabag/CoreBundle/Form/Type/UserInformationType.php | |||
@@ -5,12 +5,11 @@ use Symfony\Component\Form\AbstractType; | |||
5 | use Symfony\Component\Form\FormBuilderInterface; | 5 | use Symfony\Component\Form\FormBuilderInterface; |
6 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; | 6 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
7 | 7 | ||
8 | class UserType extends AbstractType | 8 | class UserInformationType extends AbstractType |
9 | { | 9 | { |
10 | public function buildForm(FormBuilderInterface $builder, array $options) | 10 | public function buildForm(FormBuilderInterface $builder, array $options) |
11 | { | 11 | { |
12 | $builder | 12 | $builder |
13 | ->add('username', 'text') | ||
14 | ->add('name', 'text') | 13 | ->add('name', 'text') |
15 | ->add('email', 'text') | 14 | ->add('email', 'text') |
16 | ->add('save', 'submit') | 15 | ->add('save', 'submit') |
@@ -26,6 +25,6 @@ class UserType extends AbstractType | |||
26 | 25 | ||
27 | public function getName() | 26 | public function getName() |
28 | { | 27 | { |
29 | return 'user'; | 28 | return 'update_user'; |
30 | } | 29 | } |
31 | } | 30 | } |