Maybe I been looking at this for too long...
It will not save and I cannot see why...The data gets sent,
debug shows the data being sent and the data pulled from the $userInfo =
$this->User->slugToId($slug); function
the function has the user id data in it.
if (!empty($this->data)) {
debug($this->data);
$userInfo = $this->User->slugToId($slug);
debug($userInfo);
//$this->data['User']['reset'] = '';
$this->data['User']['password'] =
Security::hash($this->data['User']['password'], null, true);
$this->User->id = $userInfo['User']['id'];
$white = array('password');
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?
Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---