I am upgrading an app from CakePHP 1.3 to CakePHP 2.2.1 .
We are implementing ACL and in AppController I saw
if (isset($this->Auth)) {
if ($this->use_acl) {
$this->Auth->authorize = 'actions';
}
As a variable declaration I have already made changes to the following :
var $components = array(
'Auth' => array(
'authenticate' => array(
'Form' => array(
'fields' => array('username' => 'email', 'password' => 'password')
)
),
'loginAction' => array(
'admin' => false, 'prefix' => false, 'controller' => 'users',
'action' => 'login')
),
'Session', 'Facebook.Connect');
does it still require me to keep:
$this->Auth->loginAction = array('admin' => false, 'prefix' => false, 'controller' => 'users', 'action' => 'login');
The code work may sound ugly but, that is how upgrades are! ;)
Also, can I use the $this->Auth-> 'auth properties' in 2.2.1 as it was possible in 1.3 ?