From 8f37c51a5526af91ca76bba33dca9d136ea7814f Mon Sep 17 00:00:00 2001 From: Nicolas MELONI Date: Tue, 18 Jun 2024 08:58:46 +0200 Subject: [PATCH] SYL-220 - set payplug key as password --- src/Gateway/Form/Type/AbstractGatewayConfigurationType.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gateway/Form/Type/AbstractGatewayConfigurationType.php b/src/Gateway/Form/Type/AbstractGatewayConfigurationType.php index d6de6749..d8871100 100644 --- a/src/Gateway/Form/Type/AbstractGatewayConfigurationType.php +++ b/src/Gateway/Form/Type/AbstractGatewayConfigurationType.php @@ -12,7 +12,7 @@ use Sylius\Component\Core\Model\ChannelInterface; use Sylius\Component\Resource\Repository\RepositoryInterface; use Symfony\Component\Form\AbstractType; -use Symfony\Component\Form\Extension\Core\Type\TextType; +use Symfony\Component\Form\Extension\Core\Type\PasswordType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\FormError; use Symfony\Component\Form\FormEvent; @@ -58,7 +58,7 @@ public function __construct( public function buildForm(FormBuilderInterface $builder, array $options): void { $builder - ->add('secretKey', TextType::class, [ + ->add('secretKey', PasswordType::class, [ 'label' => 'payplug_sylius_payplug_plugin.ui.secret_key', 'validation_groups' => self::VALIDATION_GROUPS, 'constraints' => [