I also use Cake 1.2.0.5427alpha.

My password validation doesn't work, either. Even if I try the
simplest rule ever: VALID_NOT_EMPTY. No error message is fired when I
leave the password field blank.

On Jul 18, 4:58 pm, pihentagy <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I've validation rules in my model:
>
>         var $validate = array(
>                 'p4ssword' => array(
>                         'length' => array('rule'=>array('minLength',8)),
>                         'forbidden'=>array('rule'=>'notForbiddenPwd'),
>                         'similar'=>array('rule'=>'notSimilarPwd'),
>                 ),
>                 'confirm_p4ssword'=>array(
>                         'match' => array('rule'=>'confirm_password')
>                 ),
>         );
>
> and
>                                 if($this->User->save($this->data, true, 
> array('p4ssword'))) {
> in my controller.
>
> Shouldn't this line fires validations? Putting log messages to the
> validation methods, I cannot see the those messages in the log, so
> something is wrong :(
>
> Can anybody help figure out what's going on?
>
> Using cake_1.2.0.5427alpha
>
> thanks
> Gergo


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to