Update index.html

This commit is contained in:
Daniel LaForce 2024-08-01 19:50:46 -06:00
parent 9ac80ca051
commit ead6431997
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@
function generateToken(length) {
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
let result = '';
for (let i = 0; i < length; i++) {
for (let i = 0; length > i; i++) {
result += characters.charAt(Math.floor(Math.random() * characters.length));
}
return result;