From ec03b6c63f0a0005b757ebd6a8d8ea8471de7be3 Mon Sep 17 00:00:00 2001 From: Gabriel Fuentes Date: Mon, 14 Jan 2019 20:08:36 -0600 Subject: [PATCH] probando conexion5 --- .idea/workspace.xml | 37 +++++++++++++++++++------------------ js/main.js | 2 -- login.php | 4 ++-- 3 files changed, 21 insertions(+), 22 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index bc5dc63..152f203 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,6 +3,7 @@ + - + - - + + - + - - + + @@ -73,10 +74,10 @@ @@ -165,12 +166,12 @@ - + - @@ -264,13 +265,6 @@ - - - - - - - @@ -280,8 +274,15 @@ - - + + + + + + + + + diff --git a/js/main.js b/js/main.js index 9c3835d..a07cd39 100644 --- a/js/main.js +++ b/js/main.js @@ -10,8 +10,6 @@ jQuery(document).on('submit','#formlg',function(event){ $('.botonlg').val('Validando...'); } }) - - console.log("afuera de if"); .done(function (respuesta) { console.log(respuesta); diff --git a/login.php b/login.php index c01cf51..b5d39b9 100644 --- a/login.php +++ b/login.php @@ -12,8 +12,8 @@ if ($nueva_consulta = $mysqli->prepare("SELECT nombre, perfil FROM cat_usuario - WHERE user = ? - AND password = ?")){ + WHERE usuario = ? + AND contrasena = ?")){ $nueva_consulta->bind_param('ss',$usuario, $pass); $nueva_consulta->execute();