reCaptcha update #7
|
@ -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)%'
|
||||||
|
|
|
@ -18,7 +18,7 @@ class PasswordResetRequestData
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*
|
*
|
||||||
* @ReCaptcha\IsTrue
|
* @ReCaptcha\IsTrueV3()
|
||||||
*/
|
*/
|
||||||
public $recaptcha;
|
public $recaptcha;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue