This commit is contained in:
Frank
2026-01-13 21:54:26 +01:00
parent 498ba1bfca
commit a90489da28
11 changed files with 120 additions and 2 deletions

View File

@@ -3,6 +3,8 @@
namespace App\Tech\Form;
use App\Tech\Entity\User;
use Karser\Recaptcha3Bundle\Form\Recaptcha3Type;
use Karser\Recaptcha3Bundle\Validator\Constraints\Recaptcha3;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
@@ -40,6 +42,10 @@ class RegistrationFormType extends AbstractType
),
],
])
->add('captcha', Recaptcha3Type::class, [
'constraints' => new Recaptcha3(),
'action_name' => 'registration',
])
;
}