Deutlichere Effekte bei Nutzerinteraktionen #60

Merged
niklas.ortmann merged 8 commits from visuelles-Feedback into dev 2026-07-19 21:09:03 +02:00
Showing only changes of commit a4b0dfe7ec - Show all commits
+13 -10
View File
@@ -75,20 +75,23 @@ class DatabaseUserManager implements UserManagerDAO {
try { try {
$db = $this->getConnection(); $db = $this->getConnection();
$sql = " echo "<pre>";
SELECT * echo "Gesuchte Mail: ";
FROM users var_dump($email);
WHERE LOWER(TRIM(email)) = LOWER(TRIM(:email)) echo "</pre>";
";
$sql = "SELECT * FROM users";
$command = $db->prepare($sql); $command = $db->prepare($sql);
$command->execute();
$command->execute([ $users = $command->fetchAll(PDO::FETCH_ASSOC);
":email" => trim($email)
]);
$user = $command->fetch(PDO::FETCH_ASSOC); echo "<pre>";
print_r($users);
echo "</pre>";
return $user ?: null; exit();
} catch (PDOException $e) { } catch (PDOException $e) {
throw new RuntimeException("Benutzer konnte nicht geladen werden."); throw new RuntimeException("Benutzer konnte nicht geladen werden.");