From 0d830cbad90cb938331362dfbaa248166ee53133 Mon Sep 17 00:00:00 2001 From: rmontanana Date: Tue, 18 Feb 2014 12:30:45 +0100 Subject: [PATCH] =?UTF-8?q?see=20#8=20Arreglado=20un=20problema=20en=20la?= =?UTF-8?q?=20comprobaci=C3=B3n=20de=20las=20contrase=C3=B1as=20de=20los?= =?UTF-8?q?=20usuarios.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Inventario.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Inventario.php b/Inventario.php index 1219861..082275e 100644 --- a/Inventario.php +++ b/Inventario.php @@ -159,7 +159,7 @@ class Inventario { // los datos de las columnas $fila = $this->bdd->procesaResultado(); // Para comprobar si la clave coincide - if ($fila['clave'] == $this->clave) { + if (trim($fila['clave']) == trim($this->clave)) { $this->perfil = $this->creaPerfil($fila); // caso en el que devolveremos un Id de sesión // único para este usuario