Add files via upload

This commit is contained in:
Fernando Méndez
2021-05-03 21:58:47 +02:00
committed by GitHub
parent ac2b2cfee0
commit 04f9c8bf2a
20 changed files with 30 additions and 25 deletions

View File

@ -80,6 +80,8 @@ class FormRegister extends Form {
$bd->createUser("", $username, $email, $password, "user");
$this->user = $bd->selectUser($username, $password);
if ($this->user) {
$this->user->setPass(null);
$_SESSION["user"] = serialize($this->user);
$_SESSION["nombre"] = $this->user->getName();
$_SESSION["rol"] = $this->user->getRol();
$_SESSION["login"] = $register;