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 committed Jul 13, 2022
1 parent d3dc5a1 commit 392d492
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1,184 deletions.
2 changes: 1 addition & 1 deletion osf/migrations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,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 settings.DENY_EMAIL_DOMAINS:
for domain in settings.BLACKLISTED_DOMAINS:
NotableEmailDomain.objects.update_or_create(
domain=domain,
defaults={'note': NotableEmailDomain.Note.EXCLUDE_FROM_ACCOUNT_CREATION},
Expand Down
Loading

0 comments on commit 392d492

Please sign in to comment.