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>
This commit is contained in:
parent
2878e8e01a
commit
a6d219453c
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user