<?php
require 'conexion_PDO.php';

$email = $_POST['email'] ?? null;

if ($email) {
    $stmt = $pdo->prepare("UPDATE Usuarios SET token_pass = NULL WHERE usuario = ?");
    $stmt->execute([$email]);
}

header("Location: index.html");
exit;
?>
