1
0
Fork 0
refactor/models
Matthew 2020-08-30 22:13:24 -04:00
parent 8c12ad4086
commit 91d7c1d8cf
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ export default class Root extends Route {
res.setHeader('Access-Control-Allow-Origin', '*');
const token = <any> jwt.verify(req.query.t.toString(), this.server.client.config.keyPair.privateKey);
const check = await this.server.storage.get<boolean>(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);