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
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:
parent
e7f63a71db
commit
5c7e7bf7f9
@ -17,7 +17,7 @@ export const hubBlessingController: RequestHandler = async (req, res) => {
|
|||||||
|
|
||||||
let token = "";
|
let token = "";
|
||||||
for (let i = 0; i != 32; ++i) {
|
for (let i = 0; i != 32; ++i) {
|
||||||
token += getRandomInt(0, 16).toString(16);
|
token += getRandomInt(0, 15).toString(16);
|
||||||
}
|
}
|
||||||
|
|
||||||
res.json({
|
res.json({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user