fix token.length possibly exceeding 32 characters
All checks were successful
Build / build (18) (push) Successful in 41s
Build / build (22) (push) Successful in 1m8s
Build / build (20) (push) Successful in 1m12s
Build / build (18) (pull_request) Successful in 41s
Build / build (20) (pull_request) Successful in 1m9s
Build / build (22) (pull_request) Successful in 1m24s

This commit is contained in:
Sainan 2025-03-26 21:54:42 +01:00
parent e7f63a71db
commit 5c7e7bf7f9

View File

@ -17,7 +17,7 @@ export const hubBlessingController: RequestHandler = async (req, res) => {
let token = "";
for (let i = 0; i != 32; ++i) {
token += getRandomInt(0, 16).toString(16);
token += getRandomInt(0, 15).toString(16);
}
res.json({