mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
don't try and put properties on email if basic email is not configured
This commit is contained in:
parent
f7a79e8c78
commit
2795a04ffa
1 changed files with 7 additions and 7 deletions
|
@ -459,14 +459,14 @@ if process.env["SHARELATEX_EMAIL_FROM_ADDRESS"]?
|
||||||
secure: process.env["SHARELATEX_EMAIL_SMTP_SECURE"]
|
secure: process.env["SHARELATEX_EMAIL_SMTP_SECURE"]
|
||||||
ignoreTLS: process.env["SHARELATEX_EMAIL_SMTP_IGNORE_TLS"]
|
ignoreTLS: process.env["SHARELATEX_EMAIL_SMTP_IGNORE_TLS"]
|
||||||
|
|
||||||
if process.env["SHARELATEX_EMAIL_SMTP_USER"]? or process.env["SHARELATEX_EMAIL_SMTP_PASS"]?
|
if process.env["SHARELATEX_EMAIL_SMTP_USER"]? or process.env["SHARELATEX_EMAIL_SMTP_PASS"]?
|
||||||
settings.email.parameters.auth =
|
settings.email.parameters.auth =
|
||||||
user: process.env["SHARELATEX_EMAIL_SMTP_USER"]
|
user: process.env["SHARELATEX_EMAIL_SMTP_USER"]
|
||||||
pass: process.env["SHARELATEX_EMAIL_SMTP_PASS"]
|
pass: process.env["SHARELATEX_EMAIL_SMTP_PASS"]
|
||||||
|
|
||||||
if process.env["SHARELATEX_EMAIL_SMTP_TLS_REJECT_UNAUTH"]?
|
if process.env["SHARELATEX_EMAIL_SMTP_TLS_REJECT_UNAUTH"]?
|
||||||
settings.email.parameters.tls =
|
settings.email.parameters.tls =
|
||||||
rejectUnauthorized: process.env["SHARELATEX_EMAIL_SMTP_TLS_REJECT_UNAUTH"]
|
rejectUnauthorized: process.env["SHARELATEX_EMAIL_SMTP_TLS_REJECT_UNAUTH"]
|
||||||
|
|
||||||
# Password Settings
|
# Password Settings
|
||||||
# -----------
|
# -----------
|
||||||
|
|
Loading…
Reference in a new issue