Email aus Kommentar entfernen
This commit is contained in:
@@ -75,11 +75,15 @@ class DatabaseUserManager implements UserManagerDAO {
|
||||
try {
|
||||
$db = $this->getConnection();
|
||||
|
||||
$sql = "SELECT * FROM users WHERE email = :email";
|
||||
$sql = "
|
||||
SELECT *
|
||||
FROM users
|
||||
WHERE LOWER(TRIM(email)) = LOWER(TRIM(:email))
|
||||
";
|
||||
$command = $db->prepare($sql);
|
||||
|
||||
$command->execute([
|
||||
":email" => $email
|
||||
":email" => trim($email)
|
||||
]);
|
||||
|
||||
$user = $command->fetch(PDO::FETCH_ASSOC);
|
||||
|
||||
Reference in New Issue
Block a user