On 8/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I used a users plugin (cake\app\plugins\users) to manager users in my
> application.
>
> auth config:
> $this->Auth->authorize = 'controller';
> $this->Auth->userModel = 'User';
> $this->Auth->fields = array(
> 'username' => 'username', 'password' => 'password'
> );
> $this->Auth->allowedActions = array('login');
> $this->Auth->autoRedirect = true;
> $this->Auth->loginAction = '/users/users/login';
> $this->Auth->loginRedirect = '/users/users/index';
>
> when redirect to login url,
>
> my url redirect to "/login", not to "/users/users/login"
>
You can't put 'login' in the allowedActions array as Auth
automatically handles that for you. Auth behaves weirdly when you do.
--
Chris Hartjes
Senior Developer
Cake Development Corporation
My motto for 2007: "Just build it, damnit!"
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---