Commit Graph

2 Commits

Author SHA1 Message Date
Serge RAKOTO HARRY-NAIVO
a6d219453c fix(site): setup-password.html validation token 64 -> 96 chars
Bug compagnon de api PR #57 : crypto.randomBytes(48).toString hex = 96
caracteres, pas 64. La validation JS cote site rejetait tous les vrais
tokens avec 'Lien invalide ou incomplet'.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-10 23:14:30 +02:00
Serge RAKOTO HARRY-NAIVO
af58c04776 feat(site): page setup-password.html pour bridge lead -> user
Compagnon de api PR #55 (bridge lead -> user).

Flow:
- Lead clique email setup compte
- Arrive sur /setup-password.html?token=XXX
- JS POST /auth/lookup-setup-token pre-remplit email + firstname + ref
- Form 2 password avec validation (min 8 majuscule chiffre)
- Submit POST /auth/setup-from-lead -> user cree + JWT
- Affiche success + lien vers application.html pour download app

Design: card centree, MVA gold/navy, mobile responsive, vanilla JS.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-10 22:31:36 +02:00