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 --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'index.js') 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); -- cgit v1.2.3