Created
November 7, 2017 22:48
-
-
Save kamil161g/8582190a807b6eda31f2bd5df4e48196 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>add('plainPassword', RepeatedType::class, array( | |
'type' => PasswordType::class, | |
'first_options' => array('constraints'=> new NotBlank(['message' => 'Wypełnij pole Hasło.']), | |
'constraints' => new Length([ | |
'min' => 8, | |
'minMessage' => 'Hasło nie może być krótsze niż 8 znaków.', | |
'max' => 24, | |
'maxMessage' => 'Haslo nie może być dłuższe niż 24 znaki.' | |
]), | |
'label' => 'Hasło'), | |
'second_options' => array('constraints'=> new NotBlank(['message' => 'Wypełnij pole Hasło.']), | |
'constraints' => new IdenticalTo(['value' =>, | |
'message' => 'ZLE']), | |
'label' => 'Powtórz hasło'), | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment