We had this working and suddenly the password is soming out as clear
text.
We're using 1.2rc3
This:
$this->data['Member']['password'] == $this->Auth->password($this->data
['Member']['confirm_password'])
fails since the password is not automatically hashed.
We have in our app_controller:
function beforeFilter()
{
if (isset($this->Auth))
{
$this->Auth->userModel = 'User';
$this->Auth->loginAction = array('controller' => 'users',
'action' => 'login');
$this->Auth->autoRedirect = false;
$this->Auth->fields = array('username' => 'username',
'password' => 'password');
$this->Auth->authorize = 'controller';
}
}
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment