diff options
Diffstat (limited to 'scripts/gen-invite.js')
-rw-r--r-- | scripts/gen-invite.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen-invite.js b/scripts/gen-invite.js index 3336a83..7e40ffa 100644 --- a/scripts/gen-invite.js +++ b/scripts/gen-invite.js | |||
@@ -15,7 +15,7 @@ db.run(` | |||
15 | 15 | ||
16 | function generateInviteToken() { | 16 | function generateInviteToken() { |
17 | const hasher = new Bun.CryptoHasher("sha256", "super-secret-invite-key"); | 17 | const hasher = new Bun.CryptoHasher("sha256", "super-secret-invite-key"); |
18 | return hasher.update(Math.random().toString()).digest("hex"); | 18 | return hasher.update(Math.random().toString()).digest("hex").slice(0, 10); |
19 | } | 19 | } |
20 | 20 | ||
21 | function createInvite() { | 21 | function createInvite() { |