"I gave up in the end as I had to make so many changes" => The only changes that I had to make for now is to add the following code in all my controllers :
var $components = array("Auth"); function beforeFilter() { $this->Auth->userModel = "Utilisateur"; $this->Auth->fields = array('username' => 'login', 'password' => 'pass'); $this->Auth->loginAction = array('controller' => 'utilisateurs', 'action' => 'login'); $this->Auth->loginError = __("Identifiant et/ou mot de passe incorrect", true); } If there is nothing more it doesn't bother me that much. But if you tell me there will be other problems I'd better stop now and use the default Users controller...Can you please give me more details about those changes ? What do you advise me to do ? I'm working on a serious project (at the office, so not just for fun) so if it's necessary to have a Users controller I'll make one... Thanks ! On 5 juin, 12:27, leo <[EMAIL PROTECTED]> wrote: > > I'm trying to get the Auth component working. I've specified a > > different "users" controller ("utilisateurs") but when I try to go to > > the login page (/utilisateurs/login) or to access a denied resource > > I'm always redirected to /users/login (should be /utilisateurs/login). > > I don't know if it'll help, but I had the same problem - 'usuaris'. I > gave up in the end as I had to make so many changes that were internal > and therefore ultimately invisible to the end user. > > Finally I settled on the default manual names for db, model, > controller and views. It'll all be hidden by pretty urls anyway. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---