|
|
|
|
|
|
|
|
use Symfony\Component\Security\Core\Security; |
|
|
use Symfony\Component\Security\Core\Security; |
|
|
use Symfony\Component\Validator\Constraints\File; |
|
|
use Symfony\Component\Validator\Constraints\File; |
|
|
use Lc\SovBundle\Form\Ticket\TicketFormType as SovTicketFormType; |
|
|
use Lc\SovBundle\Form\Ticket\TicketFormType as SovTicketFormType; |
|
|
|
|
|
use VictorPrdh\RecaptchaBundle\Form\ReCaptchaType; |
|
|
|
|
|
|
|
|
class TicketFormType extends SovTicketFormType |
|
|
class TicketFormType extends SovTicketFormType |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
'label' => 'Email' |
|
|
'label' => 'Email' |
|
|
] |
|
|
] |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
$builder->add('captcha', Recaptcha3Type::class, [ |
|
|
|
|
|
'constraints' => new Recaptcha3(), |
|
|
|
|
|
'action_name' => 'contact', |
|
|
|
|
|
//'script_nonce_csp' => $nonceCSP, |
|
|
|
|
|
'locale' => 'fr', |
|
|
|
|
|
]); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$builder->add( |
|
|
$builder->add( |
|
|
|
|
|
|
|
|
], |
|
|
], |
|
|
] |
|
|
] |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
if(!$isConnected) { |
|
|
|
|
|
/*$builder->add('captcha', Recaptcha3Type::class, [ |
|
|
|
|
|
'constraints' => new Recaptcha3(), |
|
|
|
|
|
'action_name' => 'contact', |
|
|
|
|
|
//'script_nonce_csp' => $nonceCSP, |
|
|
|
|
|
'locale' => 'fr', |
|
|
|
|
|
]);*/ |
|
|
|
|
|
$builder->add("recaptcha", ReCaptchaType::class); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |