Skip to content

Commit

Permalink
[Task]: Limit registration form character length (#554)
Browse files Browse the repository at this point in the history
* limit registration infos' lenght

* Update RegistrationFormType.php
  • Loading branch information
kingjia90 committed Nov 8, 2023
1 parent 4746433 commit 436875c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Form/RegistrationFormType.php
Expand Up @@ -50,14 +50,23 @@ public function buildForm(FormBuilderInterface $builder, array $options)
$builder
->add('email', EmailType::class, [
'label' => 'general.email',
'attr' => [
'maxlength' => 190
],
'required' => true
])
->add('firstname', TextType::class, [
'label' => 'general.firstname',
'attr' => [
'maxlength' => 190
],
'required' => true
])
->add('lastname', TextType::class, [
'label' => 'general.lastname',
'attr' => [
'maxlength' => 190
],
'required' => true
]);
if (!$options['hidePassword']) {
Expand Down

0 comments on commit 436875c

Please sign in to comment.