From 4c3fccca92bf0416b2972164d34426876d75bdfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20M=C3=A9ndez?= <45081533+FerMdez@users.noreply.github.com> Date: Mon, 3 May 2021 16:38:53 +0200 Subject: [PATCH] Add files via upload --- assets/css/main.css | 2 +- login/includes/formLogin.php | 5 +++-- panel_user/panelUser.php | 8 +++++++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index 15cf0f6..720b5d9 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -210,7 +210,7 @@ main h1, h2, h3, h4 { color: #363636; } main img { - width: 50%; + width: 40%; } /* Create three unequal columns that floats next to each other */ diff --git a/login/includes/formLogin.php b/login/includes/formLogin.php index a167386..3e9ac16 100644 --- a/login/includes/formLogin.php +++ b/login/includes/formLogin.php @@ -24,7 +24,7 @@ class FormLogin extends Form { if(isset($_SESSION["login"])){ $name = strtoupper($_SESSION['nombre']); - $this->reply = "
{$name}, has iniciado sesión correctamente.
Usa los botones para navegar
@@ -71,7 +71,8 @@ class FormLogin extends Form { try{ if ($this->user) { - //$_SESSION["user"] = $this->user; //¿? No funcionan los getters con el objeto. + $this->user->setPass(null); + $_SESSION["user"] = serialize($this->user); $_SESSION["nombre"] = $this->user->getName(); $_SESSION["rol"] = $this->user->getRol(); $_SESSION["login"] = $login; diff --git a/panel_user/panelUser.php b/panel_user/panelUser.php index d954ad6..49e5fbd 100644 --- a/panel_user/panelUser.php +++ b/panel_user/panelUser.php @@ -1,4 +1,6 @@ getEmail(); return $reply = 'Usuario: '.$name.'
+Email: '.$email.'