Skip to content

Commit

Permalink
fixed password minimum length constraint message (#1478)
Browse files Browse the repository at this point in the history
  • Loading branch information
sspooky13 authored Mar 25, 2020
1 parent b39e998 commit 89eace3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Form/Front/Customer/Password/NewPasswordFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
'first_options' => [
'constraints' => [
new Constraints\NotBlank(['message' => 'Please enter password']),
new Constraints\Length(['min' => 6, 'minMessage' => 'Password cannot be longer than {{ limit }} characters']),
new Constraints\Length(['min' => 6, 'minMessage' => 'Password must be at least {{ limit }} characters long']),
],
],
'invalid_message' => 'Passwords do not match',
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Front/Customer/User/CustomerUserFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
],
'first_options' => [
'constraints' => [
new Constraints\Length(['min' => 6, 'minMessage' => 'Password cannot be longer than {{ limit }} characters']),
new Constraints\Length(['min' => 6, 'minMessage' => 'Password must be at least {{ limit }} characters long']),
],
],
'invalid_message' => 'Passwords do not match',
Expand Down
2 changes: 1 addition & 1 deletion src/Form/Front/Registration/RegistrationFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
'first_options' => [
'constraints' => [
new Constraints\NotBlank(['message' => 'Please enter password']),
new Constraints\Length(['min' => 6, 'minMessage' => 'Password cannot be longer than {{ limit }} characters']),
new Constraints\Length(['min' => 6, 'minMessage' => 'Password must be at least {{ limit }} characters long']),
],
],
'invalid_message' => 'Passwords do not match',
Expand Down
6 changes: 3 additions & 3 deletions translations/validators.cs.po
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ msgstr "Příjmení nesmí být delší než {{ limit }} znaků"
msgid "Last name of contact person cannot be longer than {{ limit }} characters"
msgstr "Příjmení kontaktní osoby nesmí být delší než {{ limit }} znaků"

msgid "Password cannot be longer than {{ limit }} characters"
msgstr "Heslo musí mít minimálně {{ limit }} znaků"

msgid "Password cannot be same as email"
msgstr "Heslo nesmí být stejné jako přihlašovací e-mail."

msgid "Password cannot be same as part of email before at sign"
msgstr "Heslo nesmí být stejné jako část e-mailu před zavináčem."

msgid "Password must be at least {{ limit }} characters long"
msgstr "Heslo musí mít minimálně {{ limit }} znaků"

msgid "Passwords do not match"
msgstr "Hesla se neshodují"

Expand Down
6 changes: 3 additions & 3 deletions translations/validators.en.po
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ msgstr ""
msgid "Last name of contact person cannot be longer than {{ limit }} characters"
msgstr ""

msgid "Password cannot be longer than {{ limit }} characters"
msgstr ""

msgid "Password cannot be same as email"
msgstr ""

msgid "Password cannot be same as part of email before at sign"
msgstr ""

msgid "Password must be at least {{ limit }} characters long"
msgstr ""

msgid "Passwords do not match"
msgstr ""

Expand Down

0 comments on commit 89eace3

Please sign in to comment.