mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-07 19:05:35 -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:
@@ -36,7 +36,7 @@ def test_init_superuser(api_client: TestClient, admin_user: TestUser):
|
||||
assert admin_data["groupId"] == admin_user.group_id
|
||||
|
||||
assert admin_data["fullName"] == "Change Me"
|
||||
assert admin_data["email"] == settings.DEFAULT_EMAIL
|
||||
assert admin_data["email"] == settings._DEFAULT_EMAIL
|
||||
|
||||
|
||||
def test_create_user(api_client: TestClient, admin_token):
|
||||
@@ -95,7 +95,7 @@ def test_update_other_user_as_not_admin(api_client: TestClient, unique_user: Tes
|
||||
update_data = {
|
||||
"id": unique_user.user_id,
|
||||
"fullName": "Updated Name",
|
||||
"email": settings.DEFAULT_EMAIL,
|
||||
"email": settings._DEFAULT_EMAIL,
|
||||
"group": "Home",
|
||||
"admin": True,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user