From a08babb0ded8ad1bfd22c87e098bc38172aa6d24 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 17 Nov 2019 00:00:24 -0500 Subject: [PATCH] check --- src/api/Security.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/Security.ts b/src/api/Security.ts index 368d2cb..74d3e35 100644 --- a/src/api/Security.ts +++ b/src/api/Security.ts @@ -49,9 +49,9 @@ export default class Security { decrypted += decipher.final('utf8'); const json = JSON.parse(decrypted); const account = await this.client.db.Account.findOne({ username: json.username }); - if (account._id !== saltCheck._id) return null; this.client.signale.debug(account); this.client.signale.debug(saltCheck); + if (account._id !== saltCheck._id) return null; return account; } catch (error) { this.client.signale.debug(error);