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 = "

Bienvenido {$_SESSION['nombre']}


+ $this->reply = "

Bienvenido {$name}


{$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 = '
-

Bienvenido al Panel de Usuario.


+

Bienvenido '.$name.' al Panel de Usuario.


+

Usuario: '.$name.'

+

Email: '.$email.'

'."\n"; }