From 8951ce1eac15130dbee73364c36a6d9167421844 Mon Sep 17 00:00:00 2001 From: Loris BALOCCHI Date: Tue, 11 Jun 2024 09:16:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20fix=20du=20script=20de=20login?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- account/login/login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account/login/login.php b/account/login/login.php index 7e62959..a417031 100644 --- a/account/login/login.php +++ b/account/login/login.php @@ -18,7 +18,7 @@ une fois bien connecté, on redirige vers /account/profile $hashedPassword = sha1($password); $resultat = mysqli_query($db, "SELECT * FROM user - WHERE mail = $email AND password = $hashedPassword"); + WHERE mail = '$email' AND password = '$hashedPassword'"); $query = "SELECT mail, password FROM user