From 8e613a9425785fbf4eab9ce8edf5d861765b9b10 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 17 Nov 2019 00:03:44 -0500 Subject: [PATCH] change checks --- 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 74d3e35..b1a4002 100644 --- a/src/api/Security.ts +++ b/src/api/Security.ts @@ -51,7 +51,7 @@ export default class Security { const account = await this.client.db.Account.findOne({ username: json.username }); this.client.signale.debug(account); this.client.signale.debug(saltCheck); - if (account._id !== saltCheck._id) return null; + if (saltCheck.salt !== account.salt) return null; return account; } catch (error) { this.client.signale.debug(error);