示例#1
0
 private function getUser()
 {
     $this->Senha = md5($this->Senha);
     $WsUsers = new WsUsers();
     if (Check::Email($this->Email)) {
         $WsUsers->setUser_email($this->Email);
         $login = '******';
     } else {
         $WsUsers->setUser_nickname($this->Email);
         $login = '******';
     }
     $WsUsers->setUser_password($this->Senha);
     $WsUsers->Execute()->Query("{$login} AND #user_password# AND user_status = 1");
     if ($WsUsers->Execute()->getResult()) {
         $this->Result = $WsUsers->Execute()->getResult()[0];
         $this->Result->area_trabalho = $this->getAreaTrabalho($this->Result->area_id);
         $this->Result->perfil = $this->getPerfil($this->Result->perfil_id);
         return true;
     } else {
         return false;
     }
 }