From 8d43d4c6c5491b8b4bda4b279d7d120bd6fed135 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 17 Nov 2019 00:19:38 -0500 Subject: [PATCH] checks --- src/api/Security.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/Security.ts b/src/api/Security.ts index b1a4002..28e7339 100644 --- a/src/api/Security.ts +++ b/src/api/Security.ts @@ -45,6 +45,7 @@ export default class Security { const saltCheck = await this.client.db.Account.findOne({ salt }); const encrypted = bearer.split(':')[1]; let decrypted = decipher.update(encrypted, 'base64', 'utf8'); + this.client.signale.debug(decrypted); decipher.setAuthTag(saltCheck.authTag); decrypted += decipher.final('utf8'); const json = JSON.parse(decrypted); @@ -66,6 +67,6 @@ export default class Security { if (req.query && req.query.token) { return req.query.token; } - return 'null'; + return '0000000000'; } }