You can start here http://book.cakephp.org/view/566/Change-Hash-Function and set the variable $authenticateto your user model:
class User extends AppModel {
function hashPasswords($data) {
if (isset($data['User']['password'])) {
$user = $this->findByUsername($data['User']['username']);
$data['User']['password'] = md5($data['User']['password'].$user['User']['salt']);
return $data;
}
return $data;
}
}
source
share