bugfix: store in Passphrases

This commit is contained in:
the-djmaze 2024-02-23 03:22:29 +01:00
parent 6f33bc23d3
commit a7041b4efb
3 changed files with 4 additions and 7 deletions

View file

@ -24,8 +24,7 @@ const
return privateKey.key;
}
const key = privateKey.id,
pass = await Passphrases.ask(
key,
pass = await Passphrases.ask(privateKey,
'OpenPGP.js key<br>' + key + ' ' + privateKey.emails[0],
'CRYPTO/'+btnTxt
);
@ -35,7 +34,7 @@ const
privateKey: privateKey.key,
passphrase
});
result && pass.remember && Passphrases.set(key, passphrase);
result && pass.remember && Passphrases.set(privateKey, passphrase);
return result;
}
},