Commit 140e5f84076a8336c9a313160644daa26c4f9d42
1 parent
0ef9e340
Exists in
master
and in
1 other branch
[Fix] Corrigindo geração de token.
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
rn/MdWsSeiUsuarioRN.php
| ... | ... | @@ -122,7 +122,7 @@ class MdWsSeiUsuarioRN extends InfraRN { |
| 122 | 122 | $usuarioDTO->setStrSigla($tokenData[0]); |
| 123 | 123 | $usuarioDTO->setStrSenha($tokenData[1]); |
| 124 | 124 | $orgaoDTO = new OrgaoDTO(); |
| 125 | - $orgaoDTO->setStrSigla($tokenData[2]); | |
| 125 | + $orgaoDTO->setNumIdOrgao($tokenData[2]); | |
| 126 | 126 | $contextoDTO = new ContextoDTO(); |
| 127 | 127 | $contextoDTO->setNumIdContexto($tokenData[3]); |
| 128 | 128 | $result = $this->apiAutenticar($usuarioDTO, $contextoDTO, $orgaoDTO); |
| ... | ... | @@ -186,7 +186,7 @@ class MdWsSeiUsuarioRN extends InfraRN { |
| 186 | 186 | $ret->sigla = $usuarioDTO->getStrSigla(); |
| 187 | 187 | $ret->nome = SessaoSEI::getInstance()->getStrNomeUsuario(); |
| 188 | 188 | |
| 189 | - $token = $this->tokenEncode($usuarioDTO->getStrSigla(), $usuarioDTO->getStrSenha(), $siglaOrgao, $contexto); | |
| 189 | + $token = $this->tokenEncode($usuarioDTO->getStrSigla(), $usuarioDTO->getStrSenha(), $orgao, $contexto); | |
| 190 | 190 | |
| 191 | 191 | $arrUnidades = array(); |
| 192 | 192 | foreach(SessaoSEI::getInstance()->getArrUnidades() as $unidade){ | ... | ... |