mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-06 16:03:12 -05:00
feat: auto detect first login (#2722)
* 'hide' default email and password env variables * first login API endpoint * run code-generators * frontend indicators for default username and pw * remove old env variables from docs * fix env set variable * remove password from tests
This commit is contained in:
@@ -85,8 +85,17 @@ class AppSettings(BaseSettings):
|
||||
return self.DB_PROVIDER.db_url_public if self.DB_PROVIDER else None
|
||||
|
||||
DEFAULT_GROUP: str = "Home"
|
||||
DEFAULT_EMAIL: str = "changeme@example.com"
|
||||
DEFAULT_PASSWORD: str = "MyPassword"
|
||||
|
||||
_DEFAULT_EMAIL: str = "changeme@example.com"
|
||||
"""
|
||||
This is the default email used for the first user created in the database. This is only used if no users
|
||||
exist in the database. it should no longer be set by end users.
|
||||
"""
|
||||
_DEFAULT_PASSWORD: str = "MyPassword"
|
||||
"""
|
||||
This is the default password used for the first user created in the database. This is only used if no users
|
||||
exist in the database. it should no longer be set by end users.
|
||||
"""
|
||||
|
||||
# ===============================================
|
||||
# Email Configuration
|
||||
|
||||
Reference in New Issue
Block a user