From d90a8b25a3cfff6d1a3baa0033d80226ba29753f Mon Sep 17 00:00:00 2001 From: Stiven Romero Date: Thu, 9 Mar 2023 14:09:37 -0500 Subject: [PATCH] Se agregaron las sedes al token de auth --- Microservicios/MsUsuarios/Controllers/AuthController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Microservicios/MsUsuarios/Controllers/AuthController.cs b/Microservicios/MsUsuarios/Controllers/AuthController.cs index fef091e..fe706e0 100644 --- a/Microservicios/MsUsuarios/Controllers/AuthController.cs +++ b/Microservicios/MsUsuarios/Controllers/AuthController.cs @@ -156,9 +156,8 @@ namespace MSAdminUsuarios.Controllers } } - - [AcceptVerbs("GET")] - string Token(USUARIO user) + [HttpPost("pruebaUsuario")] + public string Token(USUARIO user) { List 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) });