aboutsummaryrefslogtreecommitdiff
path: root/src/routes/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/index.js')
-rw-r--r--src/routes/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/index.js b/src/routes/index.js
index 4bc45cd..9a415be 100644
--- a/src/routes/index.js
+++ b/src/routes/index.js
@@ -126,7 +126,7 @@ router.get("/dashboard", authenticateToken, async (req, res) => {
126 126
127router.get("/create-invite", authenticateAdmin, async (req, res) => { 127router.get("/create-invite", authenticateAdmin, async (req, res) => {
128 function generateInviteToken() { 128 function generateInviteToken() {
129 const hasher = new Bun.CryptoHasher("sha256", "super-secret-invite-key"); 129 const hasher = new Bun.CryptoHasher("sha256");
130 return hasher.update(Math.random().toString()).digest("hex").slice(0, 10); 130 return hasher.update(Math.random().toString()).digest("hex").slice(0, 10);
131 } 131 }
132 132