From b959d2e300dbdc193f3ecf7021dd609c1e4875fa Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Fri, 8 Jul 2022 01:47:16 +0300 Subject: [PATCH] Updating ewz_recaptcha. --- config/packages/ewz_recaptcha.yaml | 2 ++ src/Form/Data/PasswordResetRequestData.php | 2 +- src/Form/PasswordResetRequestType.php | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/packages/ewz_recaptcha.yaml b/config/packages/ewz_recaptcha.yaml index 91bf50b..860eee3 100644 --- a/config/packages/ewz_recaptcha.yaml +++ b/config/packages/ewz_recaptcha.yaml @@ -1,4 +1,6 @@ # See https://github.com/excelwebzone/EWZRecaptchaBundle for full configuration ewz_recaptcha: + version: 3 + hide_badge: false public_key: '%env(EWZ_RECAPTCHA_SITE_KEY)%' private_key: '%env(EWZ_RECAPTCHA_SECRET)%' diff --git a/src/Form/Data/PasswordResetRequestData.php b/src/Form/Data/PasswordResetRequestData.php index ebf8903..65e948e 100644 --- a/src/Form/Data/PasswordResetRequestData.php +++ b/src/Form/Data/PasswordResetRequestData.php @@ -18,7 +18,7 @@ class PasswordResetRequestData /** * @var string * - * @ReCaptcha\IsTrue + * @ReCaptcha\IsTrueV3() */ public $recaptcha; } diff --git a/src/Form/PasswordResetRequestType.php b/src/Form/PasswordResetRequestType.php index dd57964..9d3a81e 100644 --- a/src/Form/PasswordResetRequestType.php +++ b/src/Form/PasswordResetRequestType.php @@ -4,7 +4,7 @@ namespace App\Form; use App\Form\Data\PasswordResetRequestData; use Symfony\Component\Form\{AbstractType, Extension\Core\Type\EmailType, FormBuilderInterface}; -use EWZ\Bundle\RecaptchaBundle\Form\Type\EWZRecaptchaType; +use EWZ\Bundle\RecaptchaBundle\Form\Type\EWZRecaptchaV3Type; use Symfony\Component\OptionsResolver\OptionsResolver; class PasswordResetRequestType extends AbstractType @@ -13,7 +13,7 @@ class PasswordResetRequestType extends AbstractType { $builder ->add('email', EmailType::class, ['required' => true]) - ->add('recaptcha', EWZRecaptchaType::class) + ->add('recaptcha', EWZRecaptchaV3Type::class) ; } -- 2.43.5