On Jan 30, 11:07 am, Reny <[EMAIL PROTECTED]> wrote:
> I have put in my input form helper the 'empty' => true (I tried false
> and true) beacuse when validation is not staisfy it turn back to my
> view and my input password field is filled with ****.... (I think that
> are hash value return from model controller and Auth model) but it
> seem not work correctly, my field stay already fill!

Validation doesn't change your data 'empty' => true means you will
allow an empty value.

>
> This is my input field:
> <?php echo 
> $form->input('password',array('label'=>false,'div'=>false,'error'=>false,
>
> 'empty' => true)); ?>

empty is only relavent for select boxes - adding that to a password
will do nothing (except maybe add empty="true" as an attribute of the
password html tag).
What you want to do is unset $this->data['User']['password'] in the
controller before re-rendering the view.

hth,

AD

>
> Thanks all
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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