summaryrefslogtreecommitdiffstats
path: root/apps/admin/modules/user/validate/create.yml
blob: 7686c7b0fea841613735726f73f147eac437d873 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
fillin:
  enabled:            true
  param:
    exclude_types:     [password]

validators:
  myStringValidator:
    class:            sfStringValidator
    param:
      min:            2
      min_error:      This field is too short (2 characters minimum)
      max:            100
      max_error:      This field is too long (100 characters maximum)

fields:
  user{nickname}:
    required:
      msg:           The Username is required
    sfStringValidator:
      min:           5
      min_error:     Username must be 5 or more characters
    sfPropelUniqueValidator:
      class:         User
      column:        nickname
      unique_error:  This Username does already exist
  user{email}:
    myStringValidator:
    sfEmailValidator:
      email_error:   This E-Mail Address is invalid
  user{password}:
    required:
      msg:           You must define a password
    myStringValidator:
  user{role_id}:
    required:
      msg:           You must set a role for this user