This commit is contained in:
2025-10-01 16:57:39 +02:00
parent 0265af9dd2
commit 4de8528da2

View File

@@ -19,7 +19,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") {
$message = "Le nuove password non coincidono.";
} else {
// Recupera hash password attuale
$stmt = $conn->prepare("SELECT password FROM admins WHERE username = ?");
$stmt = $conn->prepare("SELECT password FROM admin WHERE username = ?");
$stmt->bind_param("s", $user);
$stmt->execute();
$res = $stmt->get_result();