summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/admin/modules/mailbox/validate/create.yml9
-rw-r--r--apps/admin/modules/mailbox/validate/edit.yml9
2 files changed, 16 insertions, 2 deletions
diff --git a/apps/admin/modules/mailbox/validate/create.yml b/apps/admin/modules/mailbox/validate/create.yml
index 2148f51..f04c2fa 100644
--- a/apps/admin/modules/mailbox/validate/create.yml
+++ b/apps/admin/modules/mailbox/validate/create.yml
@@ -18,14 +18,21 @@ validators:
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: Yes
match_error: 'The characters ".,;@/" and whitespaces are not allowed'
pattern: '/^[^\.\s,;@\/]+$/i'
myDenyStringValidator:
diff --git a/apps/admin/modules/mailbox/validate/edit.yml b/apps/admin/modules/mailbox/validate/edit.yml
index fe94818..1395773 100644
--- a/apps/admin/modules/mailbox/validate/edit.yml
+++ b/apps/admin/modules/mailbox/validate/edit.yml
@@ -18,14 +18,21 @@ validators:
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: Yes
match_error: 'The characters ".,;@/" and whitespaces are not allowed'
pattern: '/^[^\.\s,;@\/]+$/i'
myDenyStringValidator: