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:
parent
5499636492
commit
6e00981ed0
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ class User extends AppModel {
|
|||
|
||||
var $validate = array(
|
||||
'first_name' => array('notEmpty'),
|
||||
'email' => array('email')
|
||||
'email' => array('notEmpty')
|
||||
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue