From 074453eda8e6364e4114669aadad70b673dbbd2a Mon Sep 17 00:00:00 2001 From: "victor.monge" <zs22016120@estudiantes.uv.mx> Date: Wed, 7 May 2025 10:39:35 -0600 Subject: [PATCH] =?UTF-8?q?Correcci=C3=B3n=20de=20ruta=20en=20la=20llamada?= =?UTF-8?q?=20al=20controlador?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/login.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/login.js b/js/login.js index 86aa3a3..19fac78 100644 --- a/js/login.js +++ b/js/login.js @@ -13,7 +13,7 @@ formulario.addEventListener("submit", async (event) => { data.append("contrasena", contrasena); try { - const respuestaPeticion = await fetch("../controllers/LoginController.php", { + const respuestaPeticion = await fetch("controllers/LoginController.php", { method: "POST", body: data, }); @@ -24,7 +24,7 @@ formulario.addEventListener("submit", async (event) => { window.location.href = 'views/inicio.html'; } else if(respuesta.estado === 'error') { notificacion.textContent = respuesta.mensaje; - if(respuesta.res){ + if(respuesta.res){ // Si existe respuesta.res hubo un error y se imprime en consola console.error(respuesta.res) } notificacion.style.display = "block";