corentin_wakdo/tests/Support
Imugiii 693e4a03bf
All checks were successful
CI / secret-scan (pull_request) Successful in 15s
CI / php-lint (pull_request) Successful in 28s
CI / static-tests (pull_request) Successful in 1m6s
CI / js-tests (pull_request) Successful in 40s
CI / secret-scan (push) Successful in 14s
CI / php-lint (push) Successful in 33s
CI / static-tests (push) Successful in 1m11s
CI / js-tests (push) Successful in 38s
feat(auth): envoi reel de l'email de reset via relais SMTP (Brevo)
Client SMTP maison (zero lib, contrainte from-scratch) : ESMTP + STARTTLS +
AUTH LOGIN, conduit par SmtpClient contre un SmtpTransport injectable (seam de
test). SmtpMailer assemble un message text/plain UTF-8 (dot-stuffing, en-tetes
RFC2047) et implemente l'interface Mailer existante. PasswordResetController
choisit SmtpMailer si SMTP_HOST+USER+PASSWORD presents, sinon garde LogMailer
(dev sans infra mail inchange).

STARTTLS exige avant AUTH (pas d'auth en clair). Garde anti-injection CRLF sur
les adresses (SmtpClient) + filter_var du destinataire (SmtpMailer). readReply
borne (anti-boucle sur reponse malformee). Secrets uniquement en .env (hote) :
placeholders dans .env.example / .env.prod.example, rien de versionne.

Revue compliance : verdict block initial (injection CRLF + readReply non borne),
2 must_fix corriges + tests de regression. 8 tests SMTP, 429 total, PHPStan L6.
2026-06-23 13:31:47 +00:00
..
FakeCatalogueDatabase.php feat(borne): tailles 30/50cl boissons a la carte (R4) (#88) 2026-06-22 14:07:46 +02:00
FakeDatabase.php feat(orders): annulation de commande (CANCEL_ORDER) - PIN + audit + restock (mlt 7.1) (#83) 2026-06-22 11:35:55 +02:00
FakeNutritionGateway.php feat(stock): enrichissement nutritionnel via API externe OpenFoodFacts (Cr 3.a.3) (#79) 2026-06-22 09:31:15 +02:00
FakeOrderDatabase.php feat(orders): annulation de commande (CANCEL_ORDER) - PIN + audit + restock (mlt 7.1) (#83) 2026-06-22 11:35:55 +02:00
FakeSmtpTransport.php feat(auth): envoi reel de l'email de reset via relais SMTP (Brevo) 2026-06-23 13:31:47 +00:00
SpyMailer.php feat: authentification back-office P2 (login/logout/reset, throttle, audit) (#11) 2026-06-15 20:18:59 +02:00