minor fixes + add notes

This commit is contained in:
zandercymatics 2024-08-23 10:46:22 -06:00
parent 7fb186e24b
commit c1378acd2c
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
4 changed files with 51 additions and 4 deletions

View file

@ -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.