Change user and contact model email validation to just notEmpty

CakePHP email rule was failing to handle new generic TLDs
This commit is contained in:
Karl Cordes 2022-04-06 13:20:52 +10:00
parent 5499636492
commit 6e00981ed0
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ class Contact extends AppModel {
'allowEmpty' => false
),
'email' => array(
'rule' => array('email'),
'rule' => array('notEmpty'),
'message' => 'Please a valid Email Address for the Contact',
'required' => true,
'allowEmpty' => false

View file

@ -8,7 +8,7 @@ class User extends AppModel {
var $validate = array(
'first_name' => array('notEmpty'),
'email' => array('email')
'email' => array('notEmpty')
);