Ejemplo n.º 1
0
 /**
  * doSave
  *
  * @param DataInterface $data
  *
  * @return void
  */
 protected function doSave(DataInterface $data)
 {
     $options = array();
     $provider = $this->input->get('provider');
     $loginName = WarderHelper::getLoginName();
     if ($provider) {
         $options['provider'] = strtolower($provider);
         $data->{$loginName} = null;
         $data->password = null;
     }
     $this->model->login($data->{$loginName}, $data->password, $data->remember, $options);
 }
Ejemplo n.º 2
0
 /**
  * doSave
  *
  * @param DataInterface $data
  *
  * @return void
  */
 protected function doSave(DataInterface $data)
 {
     $loginName = WarderHelper::getLoginName();
     $this->model->login($data->{$loginName}, $data->password, $data->remember, []);
 }