From a5f92c9bb04228234cb821e77852fbdda7e836f0 Mon Sep 17 00:00:00 2001 From: adrireal <80281789+adrireal@users.noreply.github.com> Date: Tue, 13 Apr 2021 13:00:57 +0200 Subject: [PATCH] Add files via upload --- login/includes/formRegister.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 = "