diff --git a/form_cliente.php b/form_cliente.php index 66fd770..35368f3 100644 --- a/form_cliente.php +++ b/form_cliente.php @@ -4,6 +4,11 @@ * NO REQUIERE AUTENTICACIÓN. Acceso via token: ?t=TOKEN */ $token = trim($_GET['t'] ?? ''); +// Si el token es un UUID (viene del turnero vía plantilla WA), redirigir al flujo de consentimiento +if (preg_match('/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i', $token)) { + header('Location: ver_formulario_enviado.php?token=' . urlencode($token)); + exit; +} ?>