forked from engineering/cloudservices
change checks
parent
a08babb0de
commit
8e613a9425
|
@ -51,7 +51,7 @@ export default class Security {
|
||||||
const account = await this.client.db.Account.findOne({ username: json.username });
|
const account = await this.client.db.Account.findOne({ username: json.username });
|
||||||
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;
|
if (saltCheck.salt !== account.salt) 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