Re: Auth password hash

2011-12-14 Thread euromark
remember: you should also always mentioned the cake version you are using. On 14 Dez., 11:40, AD7six wrote: > On Dec 13, 12:10 pm, Miqdad Ali wrote: > > > > > > > > > > > Hi All, > > I have started with Auth > > > class AppController extends Controller { > >     var $components = array('Auth');

Re: Auth password hash

2011-12-14 Thread AD7six
On Dec 13, 12:10 pm, Miqdad Ali wrote: > Hi All, > I have started with Auth > > class AppController extends Controller { >     var $components = array('Auth'); >     function beforeFilter(){ >         Security::setHash('md5'); >         $this->Auth->loginAction = array('controller' => 'users', '

Auth password hash

2011-12-13 Thread Miqdad Ali
Hi All, I have started with Auth class AppController extends Controller { var $components = array('Auth'); function beforeFilter(){ Security::setHash('md5'); $this->Auth->loginAction = array('controller' => 'users', 'action' => 'login'); $this->Auth->loginRedirect =

Re: Auth password hash help

2011-01-04 Thread Ma'moon
$this->data['User']['password'] gets hashed automatically from Auth component, you don't need to hash it cause it will be already hashed, if you don't want to have such a behavior try renaming your password form field to be something other than "password", say "passPhrase" or something else On Sun

Auth password hash help

2011-01-04 Thread mworkman
I am trying to get the Auth component to work. I am saving a user password using both password() and hashPassword: $password = $this->data['User']['password']; $password = $this->Auth->password($password); $this->data['User']['password'] = $this->Auth->password($password); //$this->data = $this->A

Re: Issue with authentication / auth password hash

2009-09-14 Thread Sergei
Insert to your beforeFilter in UsersController: public function beforeFilter() { parent::beforeFilter(); Security::setHash('md5'); // always use md5 ... On Sep 14, 10:58 pm, benmatthew wrote: > I'm having issues with the auth component in CakePHP 1.2. The hashes > genera

Issue with authentication / auth password hash

2009-09-14 Thread benmatthew
I'm having issues with the auth component in CakePHP 1.2. The hashes generated seem to be different from what's generated from registration and login. This creates a mismatch with the hash password stored on the DB. $this->Auth->hashPasswords($this->); hashes the same as the Login function. But t