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
|
'allowEmpty' => false
|
||||||
),
|
),
|
||||||
'email' => array(
|
'email' => array(
|
||||||
'rule' => array('email'),
|
'rule' => array('notEmpty'),
|
||||||
'message' => 'Please a valid Email Address for the Contact',
|
'message' => 'Please a valid Email Address for the Contact',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'allowEmpty' => false
|
'allowEmpty' => false
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ class User extends AppModel {
|
||||||
|
|
||||||
var $validate = array(
|
var $validate = array(
|
||||||
'first_name' => array('notEmpty'),
|
'first_name' => array('notEmpty'),
|
||||||
'email' => array('email')
|
'email' => array('notEmpty')
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue