mirror of
https://github.com/lnbits/lnbits.git
synced 2025-07-15 15:32:47 +02:00
feat: restore takes both the password
and the seed
as args
This commit is contained in:
@ -631,8 +631,10 @@ async function serialSigner(path) {
|
|||||||
},
|
},
|
||||||
hwwRestore: async function () {
|
hwwRestore: async function () {
|
||||||
try {
|
try {
|
||||||
await this.sendCommandSecure(COMMAND_RESTORE, [this.hww.mnemonic])
|
await this.sendCommandSecure(COMMAND_RESTORE, [
|
||||||
await this.sendCommandSecure(COMMAND_PASSWORD, [this.hww.password])
|
this.hww.password,
|
||||||
|
this.hww.mnemonic
|
||||||
|
])
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$q.notify({
|
this.$q.notify({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
|
@ -191,4 +191,3 @@ function asciiToUint8Array(str) {
|
|||||||
}
|
}
|
||||||
return new Uint8Array(chars)
|
return new Uint8Array(chars)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user