Exemplo n.º 1
0
 /**
  * (non-PHPdoc)
  * @see cake/libs/controller/Controller#beforeFilter()
  */
 public function beforeFilter()
 {
     parent::beforeFilter();
     if ($this->Components->attached('Auth')) {
         $this->Auth->allow('authorize_url', 'authenticate_url', 'callback');
     }
 }
Exemplo n.º 2
0
 /**
  * (non-PHPdoc)
  * @see cake/libs/controller/Controller#beforeFilter()
  */
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->allow('login', 'logout');
 }