mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-09-20 07:16:05 +08:00
Fixed bug where unencrypted ssl certs are not working probably
This commit is contained in:
parent
131757bd82
commit
e85a7703f2
|
@ -66,7 +66,7 @@ async function decrypt(encryptedData, secret, defaultCipher) {
|
|||
return encryptedData;
|
||||
}
|
||||
|
||||
if (!secret) {
|
||||
if (!secret && decryptData.format !== 'cleartext') {
|
||||
// data is encrypted but we do not have a secret
|
||||
let err = new Error('Failed to decrypt data. No secret provided.');
|
||||
err.responseCode = 500;
|
||||
|
|
Loading…
Reference in a new issue