1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-24 07:39:41 +02:00

fix: Use reserved example.com as bogus instead of email.com domain. (#2551)

`email.com` is not a reserved domain, incorrect configuration could result in unintentional effects.
`example.com` is reserved by IANA for bogus purposes, see RFC 6761.
This commit is contained in:
Flightkick 2023-09-23 15:56:34 +00:00 committed by GitHub
parent a22d500603
commit bb9afd86c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 22 additions and 22 deletions

View file

@ -31,7 +31,7 @@ def test_validators_username(api_client: TestClient, unique_user: TestUser):
def test_validators_email(api_client: TestClient, unique_user: TestUser):
emails = [
SimpleCase(value=unique_user.email, is_valid=False),
SimpleCase(value=f"{random_string()}@email.com", is_valid=True),
SimpleCase(value=f"{random_string()}@example.com", is_valid=True),
]
for user in emails: