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

@@ -13,6 +13,9 @@ if(isset($_GET['login'])) {
//Überprüfung des Passworts
if ($user !== false && password_verify($passwort, $user['passwort'])) {
$_SESSION['userid'] = $user['id'];
$_SESSION['email'] = $user['email'];
$_SESSION['giveName'] = $user['vorname'];
$_SESSION['lastName'] = $user['nachname'];
die('successfull. go to: <a href="secure.php">secure page</a>');
} else {
$errorMessage = "somethings wrong (maybe wrong password or wrong email)<br>";