diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-02-04 16:03:29 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-02-04 16:03:29 -0500 |
commit | d5c4c18ea0bd6c0d1a9d0104c1c17748a35f85a7 (patch) | |
tree | 313e42064e41c0b4da565d98992f5aa2933dd8ed /app/Validator | |
parent | 8eac12188865f380439a40549e6e6ed58c3f405c (diff) |
Add email address field for projects
Diffstat (limited to 'app/Validator')
-rw-r--r-- | app/Validator/ProjectValidator.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Validator/ProjectValidator.php b/app/Validator/ProjectValidator.php index 5b10026c..8d8053a3 100644 --- a/app/Validator/ProjectValidator.php +++ b/app/Validator/ProjectValidator.php @@ -34,6 +34,8 @@ class ProjectValidator extends BaseValidator new Validators\MaxLength('end_date', t('The maximum length is %d characters', 10), 10), new Validators\AlphaNumeric('identifier', t('This value must be alphanumeric')) , new Validators\Unique('identifier', t('The identifier must be unique'), $this->db->getConnection(), ProjectModel::TABLE), + new Validators\Email('email', t('Email address invalid')) , + new Validators\Unique('email', t('The email project must be unique across all projects'), $this->db->getConnection(), ProjectModel::TABLE), ); } |