Hello,

I've spent some time trying to find a solution to the following
problem by myself and also by searching in this group but I found
nothing at all. Here's the thing :

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).

Here's my app/app_controller.php file :

class AppController extends Controller {

        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);
        }
}

Any idea ?

Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to