mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Show GnuPG verify error
This commit is contained in:
parent
6f98aee998
commit
6141ca7936
2 changed files with 4 additions and 2 deletions
|
|
@ -183,7 +183,7 @@ export const GnuPGUserStore = new class {
|
||||||
}
|
}
|
||||||
if (null !== params.passphrase) {
|
if (null !== params.passphrase) {
|
||||||
const result = await Remote.post('GnupgDecrypt', null, params);
|
const result = await Remote.post('GnupgDecrypt', null, params);
|
||||||
if (result?.Result && false !== result.Result.data) {
|
if (result?.Result?.data) {
|
||||||
return result.Result;
|
return result.Result;
|
||||||
}
|
}
|
||||||
Passphrases.delete(key);
|
Passphrases.delete(key);
|
||||||
|
|
@ -208,7 +208,8 @@ export const GnuPGUserStore = new class {
|
||||||
if (response?.Result) {
|
if (response?.Result) {
|
||||||
return {
|
return {
|
||||||
fingerprint: response.Result.fingerprint,
|
fingerprint: response.Result.fingerprint,
|
||||||
success: 0 == response.Result.status // GOODSIG
|
success: 0 == response.Result.status, // GOODSIG
|
||||||
|
error: response.Result.message
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -302,6 +302,7 @@
|
||||||
<div class="crypto-control signed" data-bind="css: {success: message().pgpVerified() && message().pgpVerified().success, error: message().pgpVerified() && !message().pgpVerified().success}">
|
<div class="crypto-control signed" data-bind="css: {success: message().pgpVerified() && message().pgpVerified().success, error: message().pgpVerified() && !message().pgpVerified().success}">
|
||||||
<span data-icon="✍" data-i18n="OPENPGP/SIGNED_MESSAGE"></span>
|
<span data-icon="✍" data-i18n="OPENPGP/SIGNED_MESSAGE"></span>
|
||||||
<button class="btn" data-bind="visible: pgpSupported, click: pgpVerify" data-i18n="CRYPTO/VERIFY"></button>
|
<button class="btn" data-bind="visible: pgpSupported, click: pgpVerify" data-i18n="CRYPTO/VERIFY"></button>
|
||||||
|
<div data-icon="⚠" data-bind="visible: message().pgpVerified()?.error, text: message().pgpVerified()?.error"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue