mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
bugfix: store in Passphrases
This commit is contained in:
parent
6f33bc23d3
commit
a7041b4efb
3 changed files with 4 additions and 7 deletions
|
|
@ -70,8 +70,7 @@ export const GnuPGUserStore = new class {
|
||||||
};
|
};
|
||||||
if (isPrivate) {
|
if (isPrivate) {
|
||||||
key.password = async (btnTxt = 'SIGN') => {
|
key.password = async (btnTxt = 'SIGN') => {
|
||||||
const pass = await Passphrases.ask(
|
const pass = await Passphrases.ask(key,
|
||||||
key,
|
|
||||||
'GnuPG key<br>' + key.id + ' ' + key.emails[0],
|
'GnuPG key<br>' + key.id + ' ' + key.emails[0],
|
||||||
'CRYPTO/'+btnTxt
|
'CRYPTO/'+btnTxt
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,7 @@ const
|
||||||
return privateKey.key;
|
return privateKey.key;
|
||||||
}
|
}
|
||||||
const key = privateKey.id,
|
const key = privateKey.id,
|
||||||
pass = await Passphrases.ask(
|
pass = await Passphrases.ask(privateKey,
|
||||||
key,
|
|
||||||
'OpenPGP.js key<br>' + key + ' ' + privateKey.emails[0],
|
'OpenPGP.js key<br>' + key + ' ' + privateKey.emails[0],
|
||||||
'CRYPTO/'+btnTxt
|
'CRYPTO/'+btnTxt
|
||||||
);
|
);
|
||||||
|
|
@ -35,7 +34,7 @@ const
|
||||||
privateKey: privateKey.key,
|
privateKey: privateKey.key,
|
||||||
passphrase
|
passphrase
|
||||||
});
|
});
|
||||||
result && pass.remember && Passphrases.set(key, passphrase);
|
result && pass.remember && Passphrases.set(privateKey, passphrase);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1566,8 +1566,7 @@ export class ComposePopupView extends AbstractViewPopup {
|
||||||
params.signCertificate = identity.smimeCertificate();
|
params.signCertificate = identity.smimeCertificate();
|
||||||
params.signPrivateKey = identity.smimeKey();
|
params.signPrivateKey = identity.smimeKey();
|
||||||
if (identity.smimeKeyEncrypted()) {
|
if (identity.smimeKeyEncrypted()) {
|
||||||
const pass = await Passphrases.ask(
|
const pass = await Passphrases.ask(identity,
|
||||||
identity.smimeKey(),
|
|
||||||
i18n('SMIME/PRIVATE_KEY_OF', {EMAIL: identity.email()}),
|
i18n('SMIME/PRIVATE_KEY_OF', {EMAIL: identity.email()}),
|
||||||
'CRYPTO/DECRYPT'
|
'CRYPTO/DECRYPT'
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue