forked from wallabag/wallabag
Update bundle & stock file
- update stock file (AppKernel, app.php, etc ..) from SymfonyStandard edition) - update bundle to latest release - remove security on profiler
This commit is contained in:
@ -19,7 +19,7 @@ class ChangePasswordType extends AbstractType
|
||||
'constraints' => new UserPassword(array('message' => 'Wrong value for your current password')),
|
||||
))
|
||||
->add('new_password', RepeatedType::class, array(
|
||||
'type' => 'password',
|
||||
'type' => PasswordType::class,
|
||||
'invalid_message' => 'The password fields must match.',
|
||||
'required' => true,
|
||||
'first_options' => array('label' => 'New password'),
|
||||
|
||||
@ -36,7 +36,8 @@ class ConfigType extends AbstractType
|
||||
))
|
||||
->add('items_per_page')
|
||||
->add('language', ChoiceType::class, array(
|
||||
'choices' => $this->languages,
|
||||
'choices' => array_flip($this->languages),
|
||||
'choices_as_values' => true,
|
||||
))
|
||||
->add('save', SubmitType::class)
|
||||
;
|
||||
|
||||
@ -4,6 +4,7 @@ namespace Wallabag\CoreBundle\Form\Type;
|
||||
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\EmailType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||
@ -18,7 +19,7 @@ class NewUserType extends AbstractType
|
||||
$builder
|
||||
->add('username', TextType::class, array('required' => true))
|
||||
->add('plainPassword', RepeatedType::class, array(
|
||||
'type' => 'password',
|
||||
'type' => PasswordType::class,
|
||||
'constraints' => array(
|
||||
new Constraints\Length(array(
|
||||
'min' => 8,
|
||||
|
||||
@ -19,7 +19,7 @@ class TaggingRuleType extends AbstractType
|
||||
;
|
||||
|
||||
$tagsField = $builder
|
||||
->create('tags', 'text')
|
||||
->create('tags', TextType::class)
|
||||
->addModelTransformer(new StringToListTransformer(','));
|
||||
|
||||
$builder->add($tagsField);
|
||||
|
||||
Reference in New Issue
Block a user