Merge pull request #1258 from thedudedies21/registration_tokens
Added in date wrap on `/api/auth/generate-registration-tokens`
This commit is contained in:
commit
ec1d7273f9
@ -52,9 +52,11 @@ router.get(
|
||||
for (let i = 0; i < count; i++) {
|
||||
const token = ValidRegistrationToken.create({
|
||||
token: random(length),
|
||||
expires_at:
|
||||
expires_at: new Date(
|
||||
Date.now() +
|
||||
Config.get().security.defaultRegistrationTokenExpiration,
|
||||
Config.get().security
|
||||
.defaultRegistrationTokenExpiration,
|
||||
),
|
||||
});
|
||||
tokens.push(token);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user