修改检查密码的逻辑, 改为检查生成的address是否一致

This commit is contained in:
zhl 2023-05-17 10:40:19 +08:00
parent a862eeeeef
commit 60b2ca5405
2 changed files with 2 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -46,12 +46,7 @@ function initInternalWallet(funId, chain, pass) {
* @param {string} pass password for wallet
*/
function verifyPassword(funId, pass) {
try {
let result = jsb.verifyLocalPass(pass);
return JSON.stringify({ errcode: 0, data: result });
} catch (err) {
return JSON.stringify({ errcode: 1, errmsg: err.message || err });
}
promiseCb(funId, jc.wallet.verifyLocalPass(pass));
}
/**
* init third party wallet