diff --git a/login/includes/formRegister.php b/login/includes/formRegister.php index 0eec809..882043c 100644 --- a/login/includes/formRegister.php +++ b/login/includes/formRegister.php @@ -25,8 +25,10 @@ $this->rol = "user"; $this->id = "xxxx"; - // Creamos objetos + // Creamos DAO $instanceDAO = new UserDAO('complucine'); + + // Creamos DTO $uDTO = $instanceDAO->loadUser($this->id, $this->name, $this->email, $this->password, $this->rol); if($this->password == $this->repassword) { // Comprobacion de contrasenyas iguales @@ -48,6 +50,7 @@
\n"; } + $resultado->free(); } else { $this->reply = "