Possible to define whitelist emails

This commit is contained in:
Priit Tark 2015-08-11 15:05:05 +03:00
parent e5d03e3cdf
commit ef9048edb0
3 changed files with 20 additions and 20 deletions

View file

@ -1,3 +1,7 @@
11.08.2015
* Possible to add whitelist_emails_for_staging list at application.yml
21.07.2015
* Possible to define custom trusted proxies at application.yml

View file

@ -22,6 +22,9 @@ smtp_enable_starttls_auto: 'true' # 'false'
# If your mail server requires authentication, please change.
smtp_authentication: 'plain' # 'plain', 'login', 'cram_md5'
registrant_url: 'https:/registrant.example.com' # for valid email body registrant links
whitelist_emails_for_staging: >
test@example.org, old@example.org,
new@example.org, old@example.com, new@example.com
#
# ADMIN server

View file

@ -1,20 +1,13 @@
TEST_EMAILS = %w(
timo.vohmar@internet.ee
timo.vohmar@eestiinternet.ee
rene.vahtel@internet.ee
martin.mettig@internet.ee
hannes.klausen@internet.ee
georg.kahest@internet.ee
norman.aeg@internet.ee
martti.oigus@internet.ee
jana.jarve@internet.ee
martin@gitlab.eu
priit@gitlab.eu
info@gitlab.eu
test@example.com
test@example.org
old@example.org
new@example.org
old@example.com
new@example.com
)
TEST_EMAILS =
if Rails.env.test?
%w(
test@example.com
test@example.org
old@example.org
new@example.org
old@example.com
new@example.com
)
else
ENV['whitelist_emails_for_staging'].split(',').map(&:strip)
end