Compare commits

...

2 Commits

Author SHA1 Message Date
24104ac9f4 Merge pull request 'fix(site): setup-password token length 64 -> 96' (#14) from fix/setup-token-length-96 into main
Some checks failed
Deploy site to GitHub Pages / deploy (push) Has been cancelled
2026-05-11 00:14:37 +03:00
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

View File

@ -200,7 +200,7 @@
}
async function init() {
if (!token || token.length !== 64 || !/^[a-f0-9]+$/i.test(token)) {
if (!token || token.length !== 96 || !/^[a-f0-9]+$/i.test(token)) {
showError("Lien invalide ou incomplet.");
return;
}