I did that and no result…
My problem comes exactly after the login, when i get to another controller, i can not get the autentified user from here…
In controller after the login…
public function beforeFilter(Event $event)
{
parent::beforeFilter($event);
$user = $this->Auth->user();
if( $this->isAuthorized( $user ) )
{
$this->Auth->allow();
$this->set('auth_user', $user );
return;
}
}
$user is null…
Any idea ?
Thank you…