mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-02-25 00:13:33 +08:00
Fixed bug where unencrypted ssl certs are not working probably
This commit is contained in:
parent
131757bd82
commit
e85a7703f2
1 changed files with 1 additions and 1 deletions
|
@ -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