diff --git a/controlador_ws.php b/controlador_ws.php index 24a00f7..ca34b52 100644 --- a/controlador_ws.php +++ b/controlador_ws.php @@ -471,7 +471,8 @@ $app->group('/api/v1',function(){ $protocoloDTO = new ProtocoloDTO(); $protocoloDTO->setDblIdProtocolo($request->getParam('protocolo')); $rn = new MdWsSeiProcedimentoRN(); - return $response->withJSON($rn->identificacaoAcesso($usuarioDTO, $protocoloDTO)); + + return $response->withJSON($rn->apiIdentificacaoAcesso($usuarioDTO, $protocoloDTO)); }); })->add( new TokenValidationMiddleware()); diff --git a/rn/MdWsSeiProcedimentoRN.php b/rn/MdWsSeiProcedimentoRN.php index 4d0b5a2..fdb0173 100644 --- a/rn/MdWsSeiProcedimentoRN.php +++ b/rn/MdWsSeiProcedimentoRN.php @@ -840,7 +840,7 @@ class MdWsSeiProcedimentoRN extends InfraRN { * @param ProtocoloDTO $protocoloDTO * @return array */ - protected function identificacaoAcessoConectado(UsuarioDTO $usuarioDTO, ProtocoloDTO $protocoloDTO){ + public function apiIdentificacaoAcesso(UsuarioDTO $usuarioDTO, ProtocoloDTO $protocoloDTO){ try{ $objInfraSip = new InfraSip(SessaoSEI::getInstance()); $objInfraSip->autenticar(SessaoSEI::getInstance()->getNumIdOrgaoUsuario(), null, SessaoSEI::getInstance()->getStrSiglaUsuario(), $usuarioDTO->getStrSenha()); -- libgit2 0.21.2