From 39cbc8c286227eca935248ad9237d66fa6f45f6e Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 24 Dec 2024 17:34:23 -0500 Subject: Changed discord usernames to id as they are permanent unlike username which can be changed --- bun.lockb | Bin 125899 -> 91866 bytes index.js | 4 ++-- package.json | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bun.lockb b/bun.lockb index 43e8e7a..fd95491 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/index.js b/index.js index c06f88a..1e03b94 100644 --- a/index.js +++ b/index.js @@ -95,7 +95,7 @@ app.get("/", async (req, res) => { app.post("/register", upload.none(), async (req, res) => { if (req.isAuthenticated()) { - const { username: discordUsername, id } = req.user; + const { id } = req.user; const { username, password, passwordconfirm } = req.body; if (password !== passwordconfirm) { @@ -105,7 +105,7 @@ app.post("/register", upload.none(), async (req, res) => { try { const form = new FormData(); form.append('username', username); - form.append('email', discordUsername + '@discord.com'); + form.append('email', id + '@discord.com'); form.append('password', password); form.append('key', process.env.REG_KEY); diff --git a/package.json b/package.json index 8027b21..10776ca 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,7 @@ "module": "index.ts", "type": "module", "devDependencies": { - "@types/bun": "latest", - "tailwindcss": "^3.4.17" + "@types/bun": "latest" }, "peerDependencies": { "typescript": "^5.0.0" -- cgit v1.2.3