1
0
Fork 0

change checks

refactor/models
Matthew 2019-11-17 00:03:44 -05:00
parent a08babb0de
commit 8e613a9425
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 1 deletions

View File

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