- Create Attestation entity with reference, signature hash (HMAC-SHA256), event, user, payload
- Add migration Version20260326180000 for attestation table
- Save each attestation in DB with unique signature for tamper-proof verification
- Add public route /attestation/ventes/r/{reference} for QR code verification (short URL)
- Keep fallback /attestation/ventes/{hash} route for base64-signed verification
- Public page shows "Attestation conforme" with signature proof, no detailed data
- QR code on PDF now uses short reference URL instead of full base64 hash (scannable)
- Increase QR code resolution to 300px for better readability
- Display verification URL on PDF next to QR code
Attestation PDF improvements:
- Rename "ATTESTATION DE VENTES" to "ATTESTATION"
- Add two modes: "Attestation detaillee" (with ticket list) and "Attestation simple" (certification only)
- Simple mode: certifies figures are valid, only paid billets/votes confirmed by Stripe count
- Detailed mode: adds full ticket listing with reference, order number, billet name, buyer name
- No amounts displayed in either mode
- Gold color scheme (#fabf04) for headers, borders, table headers, summary box
- Larger text in QR verification box for readability
Scanner: ROLE_ROOT buyer tickets always validate at scan
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
47 lines
2.6 KiB
Twig
47 lines
2.6 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}Verification attestation - E-Ticket{% endblock %}
|
|
|
|
{% block body %}
|
|
<div class="page-container-md">
|
|
<h1 class="text-3xl font-black uppercase tracking-tighter italic heading-page">Verification attestation</h1>
|
|
<p class="font-bold text-gray-500 italic mb-8">Resultat de la verification par la plateforme E-Ticket.</p>
|
|
|
|
{% if isRegistered %}
|
|
<div class="card-brutal-green mb-8">
|
|
<p class="font-black text-lg mb-2">Attestation conforme</p>
|
|
<p class="text-sm text-gray-700">Ce document est authentique. Il a ete genere par la plateforme E-Ticket et <strong>aucune donnee n'a ete alteree</strong>.</p>
|
|
<div class="mt-4 pt-4 border-t border-green-300 grid grid-cols-1 md:grid-cols-2 gap-3">
|
|
<div>
|
|
<p class="text-[10px] font-black uppercase tracking-widest text-gray-500 mb-1">Reference</p>
|
|
<p class="font-mono font-black text-sm">{{ data.ref }}</p>
|
|
</div>
|
|
<div>
|
|
<p class="text-[10px] font-black uppercase tracking-widest text-gray-500 mb-1">Date d'emission</p>
|
|
<p class="font-black text-sm">{{ data.generatedAt }}</p>
|
|
</div>
|
|
<div>
|
|
<p class="text-[10px] font-black uppercase tracking-widest text-gray-500 mb-1">Evenement</p>
|
|
<p class="font-black text-sm">{{ data.event }}</p>
|
|
</div>
|
|
<div>
|
|
<p class="text-[10px] font-black uppercase tracking-widest text-gray-500 mb-1">Organisateur</p>
|
|
<p class="font-black text-sm">{{ data.organizer }}</p>
|
|
</div>
|
|
</div>
|
|
<div class="mt-3 pt-3 border-t border-green-300">
|
|
<p class="text-[10px] text-gray-500"><strong>Signature numerique :</strong> <span class="font-mono">{{ attestation.signatureHash|slice(0, 32) }}...</span></p>
|
|
<p class="text-[10px] text-gray-500"><strong>Enregistree le :</strong> {{ attestation.createdAt|date('d/m/Y a H:i:s') }}</p>
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
<div class="card-brutal mb-8" style="border-color: #eab308; background: #fefce8;">
|
|
<p class="font-black text-sm mb-2" style="color: #92400e;">Signature valide mais non enregistree</p>
|
|
<p class="text-sm text-gray-700">La signature numerique de ce document est valide, mais cette attestation n'a pas ete trouvee dans notre registre.</p>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<p class="text-xs text-gray-400 text-center">Verification fournie par E-Ticket (ticket.e-cosplay.fr), plateforme de billetterie geree par l'association E-Cosplay.</p>
|
|
</div>
|
|
{% endblock %}
|