/**
  * Init
  *
  * @return void
  */
 public function initialize()
 {
     parent::initialize();
     $this->Auth->allow(['validateAccount', 'resendValidation']);
 }
Exemplo n.º 2
0
 /**
  * Override loadModel to load specific users table
  * @param string $modelClass model class
  * @param string $type type
  * @return Table
  */
 public function loadModel($modelClass = null, $type = 'Table')
 {
     return parent::loadModel(Configure::read('Users.table'));
 }