mirror of https://github.com/keeweb/keeweb
allow key rotation in updated plugins
parent
280ed45199
commit
37914d3cb5
|
@ -149,7 +149,11 @@ class Plugin extends Model {
|
|||
return 'Plugin name mismatch';
|
||||
}
|
||||
if (manifest.publicKey !== newManifest.publicKey) {
|
||||
return 'Public key mismatch';
|
||||
const wasOfficial = SignatureVerifier.getPublicKeys().includes(manifest.publicKey);
|
||||
const isOfficial = SignatureVerifier.getPublicKeys().includes(newManifest.publicKey);
|
||||
if (!wasOfficial || !isOfficial) {
|
||||
return 'Public key mismatch';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue