forked from engineering/cloudservices
check
parent
988539279b
commit
a08babb0de
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue