prepare("SELECT * FROM users WHERE email = :email"); $result = $statement->execute(array('email' => $email)); $user = $statement->fetch(); //Überprüfung des Passworts if ($user !== false && password_verify($password, $user['password'])) { $_SESSION['userid'] = $user['id']; $_SESSION['email'] = $user['email']; $_SESSION['givenName'] = $user['givenName']; $_SESSION['lastName'] = $user['lastName']; die('successfull. go to: secure page'); } else { $errorMessage = "somethings wrong (maybe wrong password or wrong email)
"; } } ?> Login
E-Mail:


Your password: