Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Name/UserBundle/Resources/config/validation.yml
- Name\UserBundle\Entity\User:
- properties:
- plainPassword:
- - notBlank: { message: "Please enter a password", groups:[Registration, ResetPassword, ChangePassword] }
- - Length: { min: 7, groups: [Registration, ResetPassword, ChangePassword] }
- - Length: { max: 32, groups: [Registration, ResetPassword, ChangePassword] }
- - Name\UserBundle\Validator\Constraints\Password: {message: "Please enter a password"}
- # validator class location:
- # src/Name/UserBundle/Validator/Constraint/Password.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement