mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Don't remember GnuPGP key passphrase when it fails #840
This commit is contained in:
parent
e01af6a7ac
commit
73e6848ff4
1 changed files with 3 additions and 0 deletions
|
|
@ -82,6 +82,8 @@ export const GnuPGUserStore = new class {
|
||||||
if (oData?.Result) {
|
if (oData?.Result) {
|
||||||
key.armor = oData.Result;
|
key.armor = oData.Result;
|
||||||
showScreenPopup(OpenPgpKeyPopupView, [key]);
|
showScreenPopup(OpenPgpKeyPopupView, [key]);
|
||||||
|
} else {
|
||||||
|
passphrases.delete(key.id);
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
keyId: key.id,
|
keyId: key.id,
|
||||||
|
|
@ -196,6 +198,7 @@ export const GnuPGUserStore = new class {
|
||||||
if (result?.Result && false !== result.Result.data) {
|
if (result?.Result && false !== result.Result.data) {
|
||||||
return result.Result;
|
return result.Result;
|
||||||
}
|
}
|
||||||
|
passphrases.delete(key.id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue