mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(email): use decrypted private key (#2232)
This commit is contained in:
@@ -51,11 +51,12 @@ class PGPEncryptor extends Transform {
|
|||||||
|
|
||||||
// Only sign the message if private key and password exist
|
// Only sign the message if private key and password exist
|
||||||
if (this._signingKey && this._password) {
|
if (this._signingKey && this._password) {
|
||||||
privateKey = await openpgp.readPrivateKey({
|
privateKey = await openpgp.decryptKey({
|
||||||
armoredKey: this._signingKey,
|
privateKey: await openpgp.readPrivateKey({
|
||||||
|
armoredKey: this._signingKey,
|
||||||
|
}),
|
||||||
|
passphrase: this._password,
|
||||||
});
|
});
|
||||||
|
|
||||||
await openpgp.decryptKey({ privateKey, passphrase: this._password });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const emailPartDelimiter = '\r\n\r\n';
|
const emailPartDelimiter = '\r\n\r\n';
|
||||||
|
Reference in New Issue
Block a user