Skip to content

Commit

Permalink
allow BLACKLISTED_DOMAINS to be seamlessly overridden
Browse files Browse the repository at this point in the history
  • Loading branch information
John Tordoff authored and cslzchen committed Jul 13, 2022
1 parent 215b98a commit 43fc9b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion osf/migrations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def update_blocked_email_domains(sender, verbosity=0, **kwargs):
if getattr(sender, 'label', None) == 'osf':
from django.apps import apps
NotableEmailDomain = apps.get_model('osf', 'NotableEmailDomain')
for domain in osf_settings.DENY_EMAIL_DOMAINS:
for domain in osf_settings.BLACKLISTED_DOMAINS:
NotableEmailDomain.objects.update_or_create(
domain=domain,
defaults={'note': NotableEmailDomain.Note.EXCLUDE_FROM_ACCOUNT_CREATION},
Expand Down
2 changes: 1 addition & 1 deletion website/settings/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ class CeleryConfig:
ORCID_RECORD_EDUCATION_PATH = '/educations'

# Source: https://github.com/maxd/fake_email_validator/blob/master/config/fake_domains.list
DENY_EMAIL_DOMAINS = [
BLACKLISTED_DOMAINS = [
'0-mail.com',
'0815.ru',
'0815.su',
Expand Down

0 comments on commit 43fc9b1

Please sign in to comment.