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