Browse Source

Merge branch 'develop'

master
Guillaume Bourgeois 1 month ago
parent
commit
04b2656af5
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      Form/Ticket/TicketFormType.php

+ 9
- 0
Form/Ticket/TicketFormType.php View File

@@ -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(

Loading…
Cancel
Save