From 91d7c1d8cfc354ea02e563c9f4fd5571de9aca64 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 30 Aug 2020 22:13:24 -0400 Subject: [PATCH] fix --- src/api/routes/Root.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/Root.ts b/src/api/routes/Root.ts index d12be02..be1185f 100644 --- a/src/api/routes/Root.ts +++ b/src/api/routes/Root.ts @@ -58,7 +58,7 @@ export default class Root extends Route { res.setHeader('Access-Control-Allow-Origin', '*'); const token = jwt.verify(req.query.t.toString(), this.server.client.config.keyPair.privateKey); const check = await this.server.storage.get(token); - if (!check) return res.sendStatus(401); + if (check) return res.sendStatus(401); const embed = new RichEmbed(); embed.setTitle('Referral Authorization'); embed.addField('Referred User', token.referredUserAndDiscrim, true);