Skip to content

Commit bc0ed75

Browse files
authored
Update ChangePasswordFormType.tpl.php (#1202)
1 parent 8304f25 commit bc0ed75

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Resources/skeleton/resetPassword/ChangePasswordFormType.tpl.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
1111
$builder
1212
->add('plainPassword', RepeatedType::class, [
1313
'type' => PasswordType::class,
14+
'options' => [
15+
'attr' => [
16+
'autocomplete' => 'new-password',
17+
],
18+
],
1419
'first_options' => [
15-
'attr' => ['autocomplete' => 'new-password'],
1620
'constraints' => [
1721
new NotBlank([
1822
'message' => 'Please enter a password',
@@ -27,7 +31,6 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
2731
'label' => 'New password',
2832
],
2933
'second_options' => [
30-
'attr' => ['autocomplete' => 'new-password'],
3134
'label' => 'Repeat Password',
3235
],
3336
'invalid_message' => 'The password fields must match.',

0 commit comments

Comments
 (0)