Do not set credentials if they are undefined.
This commit is contained in:
parent
48a0623ded
commit
dbe828097c
@ -122,7 +122,9 @@ class TransportEmailPlugin {
|
||||
).rejectUnauthorized = !ignoreUnauthorized
|
||||
}
|
||||
|
||||
transportConf.auth = { user, pass: password }
|
||||
if (user != null && password != null) {
|
||||
transportConf.auth = { user, pass: password }
|
||||
}
|
||||
|
||||
const transport = createTransport(transportConf)
|
||||
transport.use('compile', markdownCompiler)
|
||||
|
Loading…
Reference in New Issue
Block a user