Email aus Kommentar entfernen

This commit is contained in:
2026-07-19 18:13:41 +02:00
parent a4b0dfe7ec
commit 437da98add
+6 -13
View File
@@ -75,23 +75,16 @@ class DatabaseUserManager implements UserManagerDAO {
try { try {
$db = $this->getConnection(); $db = $this->getConnection();
echo "<pre>"; $sql = "SELECT * FROM users WHERE email = :email";
echo "Gesuchte Mail: ";
var_dump($email);
echo "</pre>";
$sql = "SELECT * FROM users";
$command = $db->prepare($sql); $command = $db->prepare($sql);
$command->execute();
$users = $command->fetchAll(PDO::FETCH_ASSOC); $command->execute([
":email" => $email
]);
echo "<pre>"; $user = $command->fetch(PDO::FETCH_ASSOC);
print_r($users);
echo "</pre>";
exit(); return $user ?: null;
} catch (PDOException $e) { } catch (PDOException $e) {
throw new RuntimeException("Benutzer konnte nicht geladen werden."); throw new RuntimeException("Benutzer konnte nicht geladen werden.");