Se agregaron las sedes al token de auth
This commit is contained in:
parent
7a4d6b1509
commit
d90a8b25a3
@ -156,9 +156,8 @@ namespace MSAdminUsuarios.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[AcceptVerbs("GET")]
|
||||
string Token(USUARIO user)
|
||||
[HttpPost("pruebaUsuario")]
|
||||
public string Token(USUARIO user)
|
||||
{
|
||||
List<PERFILPORUSUARIO> perfilesPorUsuario = (from perf in _context.PERFILESPORUSUARIOs
|
||||
where perf.TX_FKDOC_USUMS == user.TX_PKDOC_USUMS && perf.NU_FK_PFL != null && perf.BL_ESTADO_PFLXUSU == 1
|
||||
@ -216,7 +215,8 @@ namespace MSAdminUsuarios.Controllers
|
||||
new Claim("nombres", nombres),
|
||||
new Claim("apellidos", apellidos),
|
||||
new Claim("tipo_doc", tipo_doc.ToString()),
|
||||
new Claim("pk", user.NU_PK_USUMS.ToString())
|
||||
new Claim("pk", user.NU_PK_USUMS.ToString()),
|
||||
new Claim("sedes", user.TX_SEDES_USUMS == null ? "" : user.TX_SEDES_USUMS)
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user