prepare("SELECT * FROM utilisateur WHERE login = ?"); $stmt->execute([$login]); $user = $stmt->fetch(); if ($user && password_verify($password, $user['password'])) { $_SESSION['user'] = $user['login']; header("Location: dashboard.php"); exit; } else { echo "
Identifiants incorrects
"; } } ?>