first commit after reset
[mixstore.git] / src / Mixstore / UserBundle / Resources / config / config.yml
1 Mixstore\UserBundle\Entity\User:
2 properties:
3 # Your custom fields in your user entity...
4 name:
5 - NotBlank:
6 message: mixstore_user.name.blank
7 groups: [ "MixstoreProfile" ]
8 - Length:
9 min: 2
10 minMessage: mixstore_user.name.short
11 max: 255
12 maxMessage: mixstore_user.name.long
13 groups: [ "MixstoreProfile" ]
14 surname:
15 - NotBlank:
16 message: mixstore_user.surname.blank
17 groups: [ "MixstoreProfile" ]
18 - Length:
19 min: 2
20 minMessage: mixstore_user.surname.short
21 max: 255
22 maxMessage: mixstore_user.surname.long
23 groups: [ "MixstoreProfile" ]
24
25 # Note: We still want to validate the email
26 # See FOSUserBundle/Resources/config/validation/orm.xml to understand
27 # the UniqueEntity constraint that was originally applied to both
28 # username and email fields
29 #
30 # As you can see, we are only applying the UniqueEntity constraint to
31 # the email field and not the username field.
32 FOS\UserBundle\Model\User:
33 constraints:
34 - Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity:
35 fields: email
36 errorPath: email
37 message: fos_user.email.already_used
38 groups: [ "MixstoreRegistration", "MixstoreProfile" ]
39
40 properties:
41 email:
42 - NotBlank:
43 message: fos_user.email.blank
44 groups: [ "MixstoreRegistration", "MixstoreProfile" ]
45 - Length:
46 min: 2
47 minMessage: fos_user.email.short
48 max: 255
49 maxMessage: fos_user.email.long
50 groups: [ "MixstoreRegistration", "ResetPassword" ]
51 - Email:
52 message: fos_user.email.invalid
53 groups: [ "MixstoreRegistration", "MixstoreProfile" ]
54 plainPassword:
55 - NotBlank:
56 message: fos_user.password.blank
57 groups: [ "MixstoreRegistration", "ResetPassword", "ChangePassword" ]
58 - Length:
59 min: 2
60 minMessage: fos_user.password.blank
61 groups: [ "MixstoreRegistration", "MixstoreProfile", "ResetPassword", "ChangePassword"]
62
63 FOS\UserBundle\Model\Group:
64 properties:
65 name:
66 - NotBlank:
67 message: fos_user.group.blank
68 groups: [ "MixstoreRegistration" ]
69 - Length:
70 min: 2
71 minMessage: fos_user.group.short
72 max: 255
73 maxMessage: fos_user.group.long
74 groups: [ "MixstoreRegistration" ]