forked from wallabag/wallabag
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
This commit is contained in:
@ -5,12 +5,11 @@ use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
||||
|
||||
class UserType extends AbstractType
|
||||
class UserInformationType extends AbstractType
|
||||
{
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
$builder
|
||||
->add('username', 'text')
|
||||
->add('name', 'text')
|
||||
->add('email', 'text')
|
||||
->add('save', 'submit')
|
||||
@ -26,6 +25,6 @@ class UserType extends AbstractType
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return 'user';
|
||||
return 'update_user';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user