Updating ewz_recaptcha.

This commit is contained in:
Alexey Skobkin 2022-07-08 01:47:16 +03:00
parent d1d730767b
commit b959d2e300
No known key found for this signature in database
GPG key ID: 5D5CEF6F221278E7
3 changed files with 5 additions and 3 deletions

View file

@ -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)%'

View file

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

View file

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