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