-- cambio de clase de validación de usuario
This commit is contained in:
@@ -340,8 +340,8 @@ public class TareasJam : IHttpHandler
|
||||
wsClientes.Cell(count, 5).Value = DRow["address.countryId"].ToString();
|
||||
wsClientes.Cell(count, 6).Value = DRow["address.stateId"].ToString();
|
||||
wsClientes.Cell(count, 7).Value = DRow["address.city"].ToString();
|
||||
|
||||
wsClientes.Cell(count, 8).Value = DRow["address.street1"].ToString();
|
||||
|
||||
wsClientes.Cell(count, 8).Value = DRow["address.street1"].ToString();
|
||||
wsClientes.Cell(count, 9).Value = DRow["address.street2"].ToString();
|
||||
wsClientes.Cell(count, 10).Value = "'" + DRow["address.postalCode"].ToString();
|
||||
wsClientes.Cell(count, 11).Value = DRow["phone.intCode"].ToString();
|
||||
@@ -642,27 +642,19 @@ public class TareasJam : IHttpHandler
|
||||
private Usuario ValidaUsuarioSistema(int CveUsuario, int CveEmpresa)
|
||||
{
|
||||
Usuario UsuarioActual = null/* TODO Change to default(_) if this is not a reference type */;
|
||||
ClsSisUsuarios ObjUsuarios = new ClsSisUsuarios();
|
||||
|
||||
string NombreCadena = ClsPaginas.get_GlobalNombreCadenaConexion(CveEmpresa);
|
||||
ClsSisUsuarioAutenticacion ObjUsuarios = new ClsSisUsuarioAutenticacion(NombreCadena:NombreCadena);
|
||||
UsuarioActual = ObjUsuarios.GetUsuarioDetalle(CveUsuario);
|
||||
|
||||
if (ObjUsuarios.GetUsuarios(CveUsuario))
|
||||
{
|
||||
if (ObjUsuarios.DtResultados.Rows.Count > 0)
|
||||
if (UsuarioActual != null)
|
||||
{
|
||||
if( HttpContext.Current.Session == null)
|
||||
{
|
||||
string Usuario = ObjUsuarios.DtResultados.Rows[0]["Usuario"].ToString();
|
||||
string Contrasenia = ObjUsuarios.DtResultados.Rows[0]["Contraseña"].ToString();
|
||||
UsuarioActual = ObjUsuarios.ValidaUsuario(Usuario, Contrasenia, CveEmpresa: CveEmpresa);
|
||||
UsuarioActual.CveEmpresa = CveEmpresa;
|
||||
|
||||
if( HttpContext.Current.Session == null)
|
||||
{
|
||||
// CrearHttpContextArtificial();
|
||||
CrearHttpContextConSession();
|
||||
|
||||
|
||||
}
|
||||
|
||||
HttpContext.Current.Session["UsuarioSIG"] = UsuarioActual;
|
||||
// CrearHttpContextArtificial();
|
||||
CrearHttpContextConSession();
|
||||
}
|
||||
HttpContext.Current.Session["UsuarioSIG"] = UsuarioActual;
|
||||
}
|
||||
|
||||
ObjUsuarios.Dispose();
|
||||
|
||||
Reference in New Issue
Block a user