blob: f04c2fa2b047995a16ebfa845c94f1327129b9c0 (
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
51
52
53
54
55
56
57
|
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)
myLowercaseValidator:
class: sfRegexValidator
param:
match: No
match_error: 'Uppercase characters are not allowed'
pattern: '/[A-Z]+/'
fields:
mailbox{name}:
required:
msg: The Username is required
myStringValidator:
myLowercaseValidator:
sfRegexValidator:
match: Yes
match_error: 'The characters ".,;@/" and whitespaces are not allowed'
pattern: '/^[^\.\s,;@\/]+$/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
|