fix: use wallet.encryptedSecret not wallet.encrypted for password verify
All checks were successful
check / check (push) Successful in 22s
All checks were successful
check / check (push) Successful in 22s
This commit is contained in:
@@ -283,7 +283,7 @@ function init(ctx) {
|
|||||||
|
|
||||||
// Verify password against the wallet's encrypted data
|
// Verify password against the wallet's encrypted data
|
||||||
try {
|
try {
|
||||||
await decryptWithPassword(wallet.encrypted, pw);
|
await decryptWithPassword(wallet.encryptedSecret, pw);
|
||||||
} catch (_e) {
|
} catch (_e) {
|
||||||
showFlash("Wrong password.");
|
showFlash("Wrong password.");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user