summaryrefslogtreecommitdiffstats
path: root/apps/admin/modules/user/validate/edit.yml
blob: 6480b375f199ff2e480fed9cab3ad411a1ae1aed (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
38
39
40
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{role_id}:
    required:
      msg:           You must set a role for this user
  user{password}:
    group:           password_group
  user{password2}:
    group:           password_group
    sfCompareValidator:
      check:         "user[password]"
      compare_error: The two passwords do not match