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) ; }