mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-01 07:09:58 -05:00
set smtp auth to null if not set
This commit is contained in:
parent
ba493c7322
commit
88246ebd8e
1 changed files with 5 additions and 3 deletions
|
@ -454,9 +454,11 @@ if process.env["SHARELATEX_EMAIL_FROM_ADDRESS"]
|
||||||
host: process.env["SHARELATEX_EMAIL_SMTP_HOST"]
|
host: process.env["SHARELATEX_EMAIL_SMTP_HOST"]
|
||||||
port: process.env["SHARELATEX_EMAIL_SMTP_PORT"],
|
port: process.env["SHARELATEX_EMAIL_SMTP_PORT"],
|
||||||
secure: process.env["SHARELATEX_EMAIL_SMTP_SECURE"]
|
secure: process.env["SHARELATEX_EMAIL_SMTP_SECURE"]
|
||||||
auth:
|
|
||||||
user: process.env["SHARELATEX_EMAIL_SMTP_USER"]
|
if process.env["SHARELATEX_EMAIL_SMTP_USER"] or process.env["SHARELATEX_EMAIL_SMTP_PASS"]
|
||||||
pass: process.env["SHARELATEX_EMAIL_SMTP_PASS"]
|
settings.email.parameters.auth =
|
||||||
|
user: process.env["SHARELATEX_EMAIL_SMTP_USER"]
|
||||||
|
pass: process.env["SHARELATEX_EMAIL_SMTP_PASS"]
|
||||||
|
|
||||||
|
|
||||||
# Password Settings
|
# Password Settings
|
||||||
|
|
Loading…
Reference in a new issue