mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-15 14:55:21 -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:
@@ -81,7 +81,7 @@ class AppSettings(BaseSettings):
|
||||
return self.DB_PROVIDER.db_url_public if self.DB_PROVIDER else None
|
||||
|
||||
DEFAULT_GROUP: str = "Home"
|
||||
DEFAULT_EMAIL: str = "changeme@email.com"
|
||||
DEFAULT_EMAIL: str = "changeme@example.com"
|
||||
DEFAULT_PASSWORD: str = "MyPassword"
|
||||
|
||||
# ===============================================
|
||||
|
||||
@@ -12,7 +12,7 @@ def dev_users() -> list[dict]:
|
||||
{
|
||||
"full_name": "Jason",
|
||||
"username": "jason",
|
||||
"email": "jason@email.com",
|
||||
"email": "jason@example.com",
|
||||
"password": hash_password(settings.DEFAULT_PASSWORD),
|
||||
"group": settings.DEFAULT_GROUP,
|
||||
"admin": False,
|
||||
@@ -20,7 +20,7 @@ def dev_users() -> list[dict]:
|
||||
{
|
||||
"full_name": "Bob",
|
||||
"username": "bob",
|
||||
"email": "bob@email.com",
|
||||
"email": "bob@example.com",
|
||||
"password": hash_password(settings.DEFAULT_PASSWORD),
|
||||
"group": settings.DEFAULT_GROUP,
|
||||
"admin": False,
|
||||
@@ -28,7 +28,7 @@ def dev_users() -> list[dict]:
|
||||
{
|
||||
"full_name": "Sarah",
|
||||
"username": "sarah",
|
||||
"email": "sarah@email.com",
|
||||
"email": "sarah@example.com",
|
||||
"password": hash_password(settings.DEFAULT_PASSWORD),
|
||||
"group": settings.DEFAULT_GROUP,
|
||||
"admin": False,
|
||||
@@ -36,7 +36,7 @@ def dev_users() -> list[dict]:
|
||||
{
|
||||
"full_name": "Sammy",
|
||||
"username": "sammy",
|
||||
"email": "sammy@email.com",
|
||||
"email": "sammy@example.com",
|
||||
"password": hash_password(settings.DEFAULT_PASSWORD),
|
||||
"group": settings.DEFAULT_GROUP,
|
||||
"admin": False,
|
||||
|
||||
@@ -89,7 +89,7 @@ class UserBase(MealieModel):
|
||||
"example": {
|
||||
"username": "ChangeMe",
|
||||
"fullName": "Change Me",
|
||||
"email": "changeme@email.com",
|
||||
"email": "changeme@example.com",
|
||||
"group": settings.DEFAULT_GROUP,
|
||||
"admin": "false",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user