From 6e00981ed00c1102b3c4bfd656b5185c2ec23c63 Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Wed, 6 Apr 2022 13:20:52 +1000 Subject: [PATCH] Change user and contact model email validation to just notEmpty CakePHP email rule was failing to handle new generic TLDs --- app/models/contact.php | 2 +- app/models/user.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/contact.php b/app/models/contact.php index eb93290e..312aa56f 100755 --- a/app/models/contact.php +++ b/app/models/contact.php @@ -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 diff --git a/app/models/user.php b/app/models/user.php index 06650848..be496f69 100755 --- a/app/models/user.php +++ b/app/models/user.php @@ -8,7 +8,7 @@ class User extends AppModel { var $validate = array( 'first_name' => array('notEmpty'), - 'email' => array('email') + 'email' => array('notEmpty') );