aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Form
diff options
context:
space:
mode:
authorJeremy <jeremy.benoist@gmail.com>2015-03-28 00:10:39 +0100
committerJeremy <jeremy.benoist@gmail.com>2015-04-01 21:23:27 +0200
commitc844dc0c50bb4f1044154401310af25eb21b0f11 (patch)
treea4572193af600a8170b220c0c186bc46d6dd3d8e /src/Wallabag/CoreBundle/Form
parent1a93ee423b072ec3bcb0c437cbf9b488bdea245c (diff)
downloadwallabag-c844dc0c50bb4f1044154401310af25eb21b0f11.tar.gz
wallabag-c844dc0c50bb4f1044154401310af25eb21b0f11.tar.zst
wallabag-c844dc0c50bb4f1044154401310af25eb21b0f11.zip
Remove ability to change username
Since password are linked to username it was hard to change username while checking that the password is the good one. Instead of doing crazy things to achieve that, I act that user won't be able to update username. Also, username (and email) must be unique, since people logged in using username and can request a new password using email. This should fix #1149
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;
5use Symfony\Component\Form\FormBuilderInterface; 5use Symfony\Component\Form\FormBuilderInterface;
6use Symfony\Component\OptionsResolver\OptionsResolverInterface; 6use Symfony\Component\OptionsResolver\OptionsResolverInterface;
7 7
8class UserType extends AbstractType 8class 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}