On Mon, Sep 14, 2009 at 7:48 PM, Dave Maharaj :: WidePixels.com
<d...@widepixels.com> wrote:
> (..)
>                   if ($this->User->save($this->data, true,
> array_intersect(array_keys($this->User->schema()), $white))) {
>                       $this->Session->setFlash(__('Password Changed.',
> true));
>                       $this->render('password_changed');
>                   } else {
>                       $this->Session->setFlash(__('Error.', true));
>                       $this->render('password_changed_error');
>                   }
>               }
> Where am I going wrong?

Call pr($this->User->invalidFields()); exit; inside the
else block to see if there's some validation issues.

Best regards.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

http://mfandrade.wordpress.com

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

Reply via email to