mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-05 01:45:22 -05: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:
@@ -124,7 +124,7 @@ def test_self_promote_admin(api_client: TestClient, unique_user: TestUser):
|
||||
update_data = {
|
||||
"id": unique_user.user_id,
|
||||
"fullName": "Updated Name",
|
||||
"email": "user@email.com",
|
||||
"email": "user@example.com",
|
||||
"group": "Home",
|
||||
"admin": True,
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user