Mark,
The AuthComponent has an authenticate member. If you set this member
to an object with a hashPasswords method, it will be used instead of
the default behavior of the AuthComponent. One thing that
a.php.programmer left off is to set this member in your
app_controller. Here is an example in the beforeFilter.
app_controller.php
<?php
class AppController extends Controller {
function beforeFilter(){
$this->Auth->authenticate = $this->User;
// the rest of your beforeFilter
}
}
Next, add the hashPassword described by a.php.programmer to your user
model.
models/user.php
<?php
class user extends AppModel {
function hashPasswords($data){
debug($data);
return $data; // no hash applied :)
}
}
-teh
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---