diff options
Diffstat (limited to 'apps/admin/modules/mailbox/validate/edit.yml')
-rw-r--r-- | apps/admin/modules/mailbox/validate/edit.yml | 9 |
1 files changed, 8 insertions, 1 deletions
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: |