summaryrefslogtreecommitdiffstats
path: root/apps/admin/modules/mailbox/validate/create.yml
blob: 20163c83d316385d15cc911011483e4dfe50dd47 (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
41
42
43
44
45
46
47
48
49
50
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)
  myPasswordValidator:
    class:            sfStringValidator
    param:
      min:            5
      min_error:      The password is too short (5 characters minimum)
      max:            100
      max_error:      The password is too long (100 characters maximum)

fields:
  mailbox{name}:
    required:
      msg:            The Username is required
    myStringValidator:
    sfRegexValidator:
      match:..........Yes
      match_error:    'The characters ".,;@/" are not allowed'
      pattern:        '/^[^\.,;@\/]+$/i'
    myDenyStringValidator:
      values:         [<?php echo implode(', ',sfConfig::get('app_mailbox_deny_names')) ?>]
      values_error:   This Username is not allowed
    sfPropelUniqueValidator:
      class:          Mailbox
      column:         name
      unique_error:   This Username already exists
  mailbox{password}:
    required:
      msg:            The Password is required
    myPasswordValidator:
  mailbox{domain_id}:
    required:
      msg:            A Domain has to be specified
  mailbox{max_quota}:
    required:
      msg:            The Mailbox Quota is required
  mailbox{max_address_count}:
    required:
      msg:            The Maximum Address Count is required