修改检查密码的逻辑, 改为检查生成的address是否一致
This commit is contained in:
parent
a862eeeeef
commit
60b2ca5405
File diff suppressed because one or more lines are too long
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user