'fields' => ['username' => 'username', 'password' => 'password']
]
]
- ,'logoutRedirect' => [
- 'controller' => 'Pages',
- 'action' => 'display',
- 'home'
- ]
]);
}
* @param Event $event
*/
public function beforeFilter(Event $event) {
- $this->Auth->allow(['add', 'logout']);
+ $this->Auth->allow();
parent::beforeFilter($event);
}