Commit 9bffd51f3868c43592bc2aa900b8a238fbfa50b7
1 parent
85a7d05d
Exists in
master
and in
1 other branch
[Feat] Gravando no token contexto e sigla após autenticação.
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,7 +122,7 @@ class MdWsSeiUsuarioRN extends InfraRN { | ||
122 | $usuarioDTO->setStrSigla($tokenData[0]); | 122 | $usuarioDTO->setStrSigla($tokenData[0]); |
123 | $usuarioDTO->setStrSenha($tokenData[1]); | 123 | $usuarioDTO->setStrSenha($tokenData[1]); |
124 | $orgaoDTO = new OrgaoDTO(); | 124 | $orgaoDTO = new OrgaoDTO(); |
125 | - $orgaoDTO->setNumIdOrgao($tokenData[2]); | 125 | + $orgaoDTO->setStrSigla($tokenData[2]); |
126 | $contextoDTO = new ContextoDTO(); | 126 | $contextoDTO = new ContextoDTO(); |
127 | $contextoDTO->setNumIdContexto($tokenData[3]); | 127 | $contextoDTO->setNumIdContexto($tokenData[3]); |
128 | $result = $this->apiAutenticar($usuarioDTO, $contextoDTO, $orgaoDTO); | 128 | $result = $this->apiAutenticar($usuarioDTO, $contextoDTO, $orgaoDTO); |
@@ -195,7 +195,7 @@ class MdWsSeiUsuarioRN extends InfraRN { | @@ -195,7 +195,7 @@ class MdWsSeiUsuarioRN extends InfraRN { | ||
195 | $ret->sigla = $usuarioDTO->getStrSigla(); | 195 | $ret->sigla = $usuarioDTO->getStrSigla(); |
196 | $ret->nome = SessaoSEI::getInstance()->getStrNomeUsuario(); | 196 | $ret->nome = SessaoSEI::getInstance()->getStrNomeUsuario(); |
197 | 197 | ||
198 | - $token = $this->tokenEncode($usuarioDTO->getStrSigla(), $usuarioDTO->getStrSenha()); | 198 | + $token = $this->tokenEncode($usuarioDTO->getStrSigla(), $usuarioDTO->getStrSenha(), $siglaOrgao, $contexto); |
199 | 199 | ||
200 | $arrUnidades = array(); | 200 | $arrUnidades = array(); |
201 | foreach(SessaoSEI::getInstance()->getArrUnidades() as $unidade){ | 201 | foreach(SessaoSEI::getInstance()->getArrUnidades() as $unidade){ |