<?php
namespace App\Form\Account;
use App\Actimage\CaptchaBundle\Form\Type\ActimageCaptchaType;
use App\Form\AbstractFrontType;
use EWZ\Bundle\RecaptchaBundle\Form\Type\EWZRecaptchaType;
use EWZ\Bundle\RecaptchaBundle\Validator\Constraints\IsTrue;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints\NotBlank;
class LostPasswordType extends AbstractFrontType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder
->add('email', EmailType::class, [
'label' => 'lost_password.step1.form.email.label',
'required' => true,
'constraints' => [new NotBlank()],
])
// ->add('recaptcha', EWZRecaptchaType::class, [
// 'label' => false,
// 'mapped' => false,
// 'required' => true,
// 'constraints' => [new IsTrue()],
// ]);
->add('captcha', ActimageCaptchaType::class, [
'label' => false,
'mapped' => false,
'required' => true,
]);
}
}