mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-29 11:01:34 +08:00
Don't remember OpenPGP key passphrase when it fails #840
This commit is contained in:
parent
78938caaf3
commit
acc1c0badc
1 changed files with 7 additions and 6 deletions
|
@ -31,12 +31,13 @@ const
|
|||
'OPENPGP/'+btnTxt
|
||||
);
|
||||
if (pass) {
|
||||
pass.remember && passphrases.set(key, pass.password);
|
||||
let passphrase = pass.password;
|
||||
return await openpgp.decryptKey({
|
||||
privateKey: privateKey.key,
|
||||
passphrase
|
||||
});
|
||||
const passphrase = pass.password,
|
||||
result = await openpgp.decryptKey({
|
||||
privateKey: privateKey.key,
|
||||
passphrase
|
||||
});
|
||||
result && pass.remember && passphrases.set(key, passphrase);
|
||||
return result;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue