merge-requests/1/merge
Matthew 2019-11-17 00:00:24 -05:00
parent 988539279b
commit a08babb0de
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 1 deletions

View File

@ -49,9 +49,9 @@ export default class Security {
decrypted += decipher.final('utf8'); decrypted += decipher.final('utf8');
const json = JSON.parse(decrypted); const json = JSON.parse(decrypted);
const account = await this.client.db.Account.findOne({ username: json.username }); 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(account);
this.client.signale.debug(saltCheck); this.client.signale.debug(saltCheck);
if (account._id !== saltCheck._id) return null;
return account; return account;
} catch (error) { } catch (error) {
this.client.signale.debug(error); this.client.signale.debug(error);