资金密码验证哈希

This commit is contained in:
chaosBreaking
2019-09-30 09:41:59 +08:00
parent 9bc25fad52
commit 17e7a34909

View File

@@ -11,7 +11,7 @@ const ETH = require('../../utils/erc20').ERC20;
const { USDTAddr } = require('../../common/constant');
const { calRevenueLastday, getActiveFund } = require('./fund.handler');
const { getDate } = require('../../utils/date');
const Crypto = require('../../utils/crypto');
const actionFilter = 'id type amount detail op createdAt tokenType';
const depositCoinsList = [{
@@ -124,7 +124,7 @@ module.exports = {
error: '不满足提现条件',
});
}
if (user.fundPwd !== password) return res.json({
if (user.fundPwd !== Crypto.hash(password)) return res.json({
code: 1,
msg: '资金密码错误',
error: '资金密码错误',