public function beforeFilter(Event $event)
{
- parent::beforeFilter($event);
-
- // Allow users to register and logout.
- // You should not add the "login" action to allow list. Doing so would
- // cause problems with normal functioning of AuthComponent.
$this->Auth->allow(['index','logout','view']);
+
+ parent::beforeFilter($event);
}
}