Email aus Kommentar entfernen
This commit is contained in:
@@ -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.");
|
||||||
|
|||||||
Reference in New Issue
Block a user