What problem are you experiencing? Is it that when a user wants to change his 
email address validation fails as the password has not been supplied? If so, 
remove the 'required' => true rule from 'password'. Probably want to do the 
same for 'email' too else you'll run into a similar problem later down the road.

On 23 Jun 2011, at 09:34, Prabha Vathi wrote:

> Hi,
> 
> var $validate = array(
>             'password' => array(
>                 'notEmpty' => array(
>                     'rule' => array('minLength', 5),
>                     'required' => true,
>                     'allowEmpty' => false,
>                     'message' => 'Please enter a password'
>                 ),
>                 'passwordSimilar' => array(
>                     'rule' => 'checkPasswords',
>                     'message' => 'Different password re entered'    
>                 )    
>             ),
>             'email' => array(
>                 'notEmpty' => array(
>                     'rule' => 'email',
>                     'required' => true,
>                     'allowEmpty' => false,
>                     'message' => 'Please enter a valid email'
>                 ),
>                 'unique' => array(
>                     'rule' => array('checkUnique', 'email'),
>                     'message' => 'Email exist. Use another'
>                 )    
>             )
>  );
> 
> This works good in registration. Now, when user edit, I just want to edit 
> email address. Now how to change the validation?
> 
> Thanks
> 
> -- 
> Our newest site for the community: CakePHP Video Tutorials 
> http://tv.cakephp.org 
> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> others with their CakePHP related questions.
>  
>  
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to