🔨 fix du script de login
This commit is contained in:
parent
8d0fe62ca8
commit
8951ce1eac
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user