Explorar el Código

Merge branch 'develop'

master
Guillaume Bourgeois hace 1 mes
padre
commit
43bb42c1ec
Se han modificado 1 ficheros con 11 adiciones y 7 borrados
  1. +11
    -7
      Form/Ticket/TicketFormType.php

+ 11
- 7
Form/Ticket/TicketFormType.php Ver fichero

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);
}
} }


/** /**

Cargando…
Cancelar
Guardar