Added in date wrap on generate-registration-tokens.ts
This commit is contained in:
parent
c7994c7de0
commit
dda930d501
3040
assets/schemas.json
3040
assets/schemas.json
File diff suppressed because it is too large
Load Diff
@ -52,9 +52,11 @@ router.get(
|
|||||||
for (let i = 0; i < count; i++) {
|
for (let i = 0; i < count; i++) {
|
||||||
const token = ValidRegistrationToken.create({
|
const token = ValidRegistrationToken.create({
|
||||||
token: random(length),
|
token: random(length),
|
||||||
expires_at:
|
expires_at: new Date(
|
||||||
Date.now() +
|
Date.now() +
|
||||||
Config.get().security.defaultRegistrationTokenExpiration,
|
Config.get().security
|
||||||
|
.defaultRegistrationTokenExpiration,
|
||||||
|
),
|
||||||
});
|
});
|
||||||
tokens.push(token);
|
tokens.push(token);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user