Added Name infos for register, login & secure

This commit is contained in:
Thies Mueller
2021-01-08 13:53:25 +01:00
parent 4b8d3dc9ea
commit a3fa3315c5
3 changed files with 22 additions and 14 deletions

View File

@@ -6,19 +6,19 @@ if(!isset($_SESSION['userid'])) {
}
$userid = $_SESSION['userid'];
$useremail = $_SESSION['email'];
$usergn = $_SESSION['givenName'];
$userln = $_SESSION['lastName'];
echo "Hi ".$userid;
echo "Hi ".$usergn;
echo "<br/>";
echo "Your User-ID is: ".$userid;
echo "<br/>";
echo "Your full name is: ".$usergn." ".$userln;
echo "<br/>";
echo "And your email is: ".$useremail;
echo "<br/>";
echo "<br/>";
echo "<br/>";
$statement = $pdo->prepare("SELECT * FROM users WHERE id = $userid");
$result = $statement->execute(array('email' => $email));
$user = $statement->fetch();
echo $email;
echo "<br/>";
echo "<br/>";
echo "<br/>";
echo "This is secure now!";
echo "This is the end now!";
echo "goodbye";
?>