Skip to content

Commit 4266f03

Browse files
authored
Update ChangePasswordFormType.php
1 parent 14ca4fb commit 4266f03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Form/Type/ChangePasswordFormType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Symfony\Component\Form\FormBuilderInterface;
1717
use Symfony\Component\OptionsResolver\OptionsResolver;
1818
use Symfony\Component\Security\Core\Validator\Constraints\UserPassword;
19-
use Symfony\Component\Validator\Constraints\NotNull;
19+
use Symfony\Component\Validator\Constraints\NotBlank;
2020

2121
class ChangePasswordFormType extends AbstractType
2222
{
@@ -51,7 +51,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
5151
'translation_domain' => 'FOSUserBundle',
5252
'mapped' => false,
5353
'constraints' => array(
54-
new NotNull(),
54+
new NotBlank(),
5555
new UserPassword($constraintsOptions),
5656
),
5757
));

0 commit comments

Comments
 (0)