Dang. It's a multiplie part form and someone changed the username field to 'disabled' from 'readonly'. Once we put a hidden form field in, the Auth component did it's magic. Something to note though for future reference.
Thanks! On Dec 27, 9:40 pm, Primate <[email protected]> wrote: > Are you sure that the username is also being submitted? Auth will only > auto-hash the password if both keys are present in $this->data. > > The solution is to check if $this->data["User"]["username"] exists and > determine whether or not confirm_passwords needs to be hashed. > > On Dec 27, 9:32 pm, papajoe <[email protected]> wrote: > > > Is there any reason why the Auth component would NOT has the password. > > 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 [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 -~----------~----~----~----~------~----~------~--~---
