mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -07:00
Improve error feedback
This commit is contained in:
parent
4d103ec48a
commit
1880554ae8
1 changed files with 2 additions and 0 deletions
|
@ -57,6 +57,7 @@ async function verifySignature(opts) {
|
|||
elRes.classList.add('green');
|
||||
} else {
|
||||
feedback += "The message's signature COULD NOT BE verified using the userId extracted from the signature.<br>";
|
||||
feedback += 'UserId: '+keyData.sigUserId+'<br>';
|
||||
elRes.classList.remove('green');
|
||||
elRes.classList.add('red');
|
||||
}
|
||||
|
@ -70,6 +71,7 @@ async function verifySignature(opts) {
|
|||
elRes.classList.add('green');
|
||||
} else {
|
||||
feedback += "The message's signature COULD NOT BE verified using the keyId extracted from the signature.<br>";
|
||||
feedback += 'KeyID: '+keyData.sigKeyId+'<br>';
|
||||
elRes.classList.remove('green');
|
||||
elRes.classList.add('red');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue