Add files via upload

This commit is contained in:
adrireal 2021-04-13 13:00:57 +02:00 committed by GitHub
parent 50de669747
commit a5f92c9bb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 @@
<a href='./'><button>Iniciar Sesión</button></a>
<form method='post' action='./'><button name='register' id='register'>Registro</button></form>\n";
}
$resultado->free();
}
else {
$this->reply = "<h1>¡Ha ocurrido un error!</h1><hr/>".