Wednesday, October 29, 2008

Auth passing user model to Acl

Hi,

I have a problem with this.

Using Auth with Acl and action authoroization.

If fails beacause Auth pass the entire user model data to the
AclComponent->check() method instead of an simple array with model and
foreign_key keys.

Could this be a misconfiguaration of the Auth Component in the
AppController?

$this->Auth->userModel = 'Usuario';
$this->Auth->fields = array(
'username' => 'usuario',
'password' => 'clave');
$this->Auth->loginAction = array(
Configure::read('Routing.admin') => false,
'controller' => 'usuarios',
'action' => 'login');
$this->Auth->loginRedirect = array(
'controller' => 'pages',
'action' => 'entrada');
$this->Auth->logoutRedirect = array(
'controller' => 'pages',
'action' => 'salida');
$this->Auth->loginError = __('Error de login', true);
$this->Auth->autoRedirect = false;
$this->Auth->authorize = 'actions';
$this->Auth->actionPath = 'actions/';


--
Fran Iglesias
frankie@buabua.com

--~--~---------~--~----~------------~-------~--~----~
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 cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: