diff options
author | Pete Keen <pete@petekeen.net> | 2017-04-04 11:04:44 -0400 |
---|---|---|
committer | Pete Keen <pete@petekeen.net> | 2017-04-04 11:20:15 -0400 |
commit | e9a6da6bc739f4f68447f56b93810762da388ce8 (patch) | |
tree | 5e18d2c5197f7e14d372d1353467bcba69f196c8 /config/initializers | |
parent | 5f54981846508daf9558f66ffd70d42d8213bea9 (diff) |
[#817] Add email whitelist
This adds the ability to filter user signup with a whitelist instead of or in addition to a blacklist. Fixes #817
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/blacklists.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/blacklists.rb b/config/initializers/blacklists.rb index 52646e64d..6db7be7dc 100644 --- a/config/initializers/blacklists.rb +++ b/config/initializers/blacklists.rb @@ -2,4 +2,5 @@ Rails.application.configure do config.x.email_domains_blacklist = ENV.fetch('EMAIL_DOMAIN_BLACKLIST') { 'mvrht.com' } + config.x.email_domains_whitelist = ENV.fetch('EMAIL_DOMAIN_WHITELIST') { '' } end |