Workaround for issue with email notification (#297)

This commit is contained in:
Jesus Federico 2018-10-15 15:55:29 -04:00 committed by GitHub
parent fd1b586c6e
commit 90b965d03f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 13 deletions

View File

@ -69,7 +69,7 @@ module Greenlight
end
# Determine if GreenLight should enable email verification
config.enable_email_verification = (ENV['GREENLIGHT_MAIL_NOTIFICATIONS'] == "true")
config.enable_email_verification = (ENV['ALLOW_MAIL_NOTIFICATIONS'] == "true")
# Determine if GreenLight should allow non-omniauth signup/login.
config.allow_user_signup = (ENV['ALLOW_GREENLIGHT_ACCOUNTS'] == "true")

View File

@ -66,19 +66,23 @@ ALLOW_GREENLIGHT_ACCOUNTS=true
#
# SMTP variables can be taken from the list in the following table:
#
# (SMTP_SERVER= SMTP SETTINGS)
# (SMTP_DOMAIN= URL)
# ALLOW_MAIL_NOTIFICATIONS=true
# SMTP_SERVER=smtp.gmail.com
# SMTP_PORT=587
# SMTP_DOMAIN=gmail.com
# SMTP_USERNAME=<youremail@gmail.com>
# SMTP_PASSWORD=<yourpassword>
# SMTP_AUTH=plain
# SMTP_STARTTLS_AUTO=true
#
# https://serversmtp.com/smtp-server-address/
#
GREENLIGHT_MAIL_NOTIFICATIONS=true
SMTP_SERVER=smtp.gmail.com
SMTP_PORT=587
SMTP_DOMAIN=gmail.com
SMTP_USERNAME=youremail@gmail.com
SMTP_PASSWORD=yourpassword
SMTP_AUTH=plain
SMTP_STARTTLS_AUTO=true
ALLOW_MAIL_NOTIFICATIONS=
SMTP_SERVER=
SMTP_PORT=
SMTP_DOMAIN=
SMTP_USERNAME=
SMTP_PASSWORD=
SMTP_AUTH=
SMTP_STARTTLS_AUTO=
# Prefix for the applications root URL.
# Useful for deploying the application to a subdirectory, which is highly recommended