mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 11:16:07 +02:00
minor fixes + add notes
This commit is contained in:
parent
7fb186e24b
commit
c1378acd2c
4 changed files with 51 additions and 4 deletions
|
@ -31,7 +31,10 @@ class AllowedEmail(TimeStampedModel):
|
|||
if "+" in local:
|
||||
base_local = local.split("+")[0]
|
||||
base_email = f"{base_local}@{domain}"
|
||||
allowed_emails = cls.objects.filter(email__iexact=base_email)
|
||||
allowed_emails = cls.objects.filter(
|
||||
Q(email__iexact=base_email) |
|
||||
Q(email__iexact=email)
|
||||
)
|
||||
|
||||
# The string must start with the local, and the plus must be a digit
|
||||
# and occur immediately after the local. The domain should still exist in the email.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue