reCaptcha update #7

Merged
skobkin merged 1 commit from fix_recaptcha_update into master 2022-07-07 22:48:30 +00:00
3 changed files with 5 additions and 3 deletions
Showing only changes of commit b959d2e300 - Show all commits

View file

@ -1,4 +1,6 @@
# See https://github.com/excelwebzone/EWZRecaptchaBundle for full configuration # See https://github.com/excelwebzone/EWZRecaptchaBundle for full configuration
ewz_recaptcha: ewz_recaptcha:
version: 3
hide_badge: false
public_key: '%env(EWZ_RECAPTCHA_SITE_KEY)%' public_key: '%env(EWZ_RECAPTCHA_SITE_KEY)%'
private_key: '%env(EWZ_RECAPTCHA_SECRET)%' private_key: '%env(EWZ_RECAPTCHA_SECRET)%'

View file

@ -18,7 +18,7 @@ class PasswordResetRequestData
/** /**
* @var string * @var string
* *
* @ReCaptcha\IsTrue * @ReCaptcha\IsTrueV3()
*/ */
public $recaptcha; public $recaptcha;
} }

View file

@ -4,7 +4,7 @@ namespace App\Form;
use App\Form\Data\PasswordResetRequestData; use App\Form\Data\PasswordResetRequestData;
use Symfony\Component\Form\{AbstractType, Extension\Core\Type\EmailType, FormBuilderInterface}; 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; use Symfony\Component\OptionsResolver\OptionsResolver;
class PasswordResetRequestType extends AbstractType class PasswordResetRequestType extends AbstractType
@ -13,7 +13,7 @@ class PasswordResetRequestType extends AbstractType
{ {
$builder $builder
->add('email', EmailType::class, ['required' => true]) ->add('email', EmailType::class, ['required' => true])
->add('recaptcha', EWZRecaptchaType::class) ->add('recaptcha', EWZRecaptchaV3Type::class)
; ;
} }