|
|
@@ -2,6 +2,8 @@ |
|
|
|
|
|
|
|
namespace Lc\CaracoleBundle\Form\Ticket; |
|
|
|
|
|
|
|
use Karser\Recaptcha3Bundle\Form\Recaptcha3Type; |
|
|
|
use Karser\Recaptcha3Bundle\Validator\Constraints\Recaptcha3; |
|
|
|
use Lc\CaracoleBundle\Model\Merchant\MerchantInterface; |
|
|
|
use Lc\CaracoleBundle\Model\Order\OrderShopInterface; |
|
|
|
use Lc\CaracoleBundle\Model\Section\SectionInterface; |
|
|
@@ -93,6 +95,13 @@ class TicketFormType extends SovTicketFormType |
|
|
|
'label' => 'Email' |
|
|
|
] |
|
|
|
); |
|
|
|
|
|
|
|
$builder->add('captcha', Recaptcha3Type::class, [ |
|
|
|
'constraints' => new Recaptcha3(), |
|
|
|
'action_name' => 'contact', |
|
|
|
//'script_nonce_csp' => $nonceCSP, |
|
|
|
'locale' => 'fr', |
|
|
|
]); |
|
|
|
} |
|
|
|
|
|
|
|
$builder->add( |