diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index fadee18..9955278 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -3,6 +3,7 @@
+
@@ -12,15 +13,6 @@
-
-
-
-
-
-
-
-
-
@@ -30,11 +22,11 @@
-
+
-
-
+
+
@@ -43,7 +35,7 @@
-
+
@@ -61,6 +53,7 @@
tit
usuario.php
+ respues
@@ -82,8 +75,8 @@
-
+
@@ -172,19 +165,19 @@
-
+
-
+
-
+
@@ -203,27 +196,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -285,17 +257,10 @@
-
+
-
-
-
-
-
-
-
-
-
+
+
@@ -306,10 +271,17 @@
-
+
-
-
+
+
+
+
+
+
+
+
+
diff --git a/conexion.php b/conexion.php
index 9a958e1..789a042 100644
--- a/conexion.php
+++ b/conexion.php
@@ -1,8 +1,5 @@
ping()) {
- printf ("¡La conexión está bien!\n");
-}
if($mysqli->connect_errno):
echo "Error al conectarse con MYSQL por el error " .$mysqli->connect_error;
endif;
diff --git a/js/main.js b/js/main.js
index 98be299..da56189 100644
--- a/js/main.js
+++ b/js/main.js
@@ -16,12 +16,12 @@ jQuery(document).on('submit','#formlg',function(event){
console.log(respuesta);
if (!respuesta.error){
- if (respuesta.tipo == 'Jefatura')
+ if (respuesta.perfil == 'Jefatura')
{
//location.href = '132.248.80.188/Inventario/sitio/admin/admin.php';
print("hola mundo =)");
}
- else if (respuesta.tipo == 'Area')
+ else if (respuesta.perfil == 'Area')
{
location.href = '132.248.80.188/Inventario/sitio/usuario/usuario.php';
}