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);