Skip to content

Commit 436875c

Browse files
authored
[Task]: Limit registration form character length (#554)
* limit registration infos' lenght * Update RegistrationFormType.php
1 parent 4746433 commit 436875c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Form/RegistrationFormType.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,23 @@ public function buildForm(FormBuilderInterface $builder, array $options)
5050
$builder
5151
->add('email', EmailType::class, [
5252
'label' => 'general.email',
53+
'attr' => [
54+
'maxlength' => 190
55+
],
5356
'required' => true
5457
])
5558
->add('firstname', TextType::class, [
5659
'label' => 'general.firstname',
60+
'attr' => [
61+
'maxlength' => 190
62+
],
5763
'required' => true
5864
])
5965
->add('lastname', TextType::class, [
6066
'label' => 'general.lastname',
67+
'attr' => [
68+
'maxlength' => 190
69+
],
6170
'required' => true
6271
]);
6372
if (!$options['hidePassword']) {

0 commit comments

Comments
 (0)