修改检查密码的逻辑, 改为检查生成的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
|
* @param {string} pass password for wallet
|
||||||
*/
|
*/
|
||||||
function verifyPassword(funId, pass) {
|
function verifyPassword(funId, pass) {
|
||||||
try {
|
promiseCb(funId, jc.wallet.verifyLocalPass(pass));
|
||||||
let result = jsb.verifyLocalPass(pass);
|
|
||||||
return JSON.stringify({ errcode: 0, data: result });
|
|
||||||
} catch (err) {
|
|
||||||
return JSON.stringify({ errcode: 1, errmsg: err.message || err });
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* init third party wallet
|
* init third party wallet
|
||||||
|
Loading…
x
Reference in New Issue
Block a user