From ec417bf15e2c9106b5bd582c963ad702777c2566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Thu, 5 Sep 2024 09:27:54 +0100 Subject: [PATCH] docs: remove mention of admin name and email env vars (#8096) https://github.com/Unleash/unleash/pull/7795 mistakenly included a mention that these environment variables can be used: - `UNLEASH_DEFAULT_ADMIN_NAME` - `UNLEASH_DEFAULT_ADMIN_EMAIL` However that's not really the case, since we decided to remove their respective implementation before merging that PR. --- src/lib/services/user-service.test.ts | 2 -- website/docs/using-unleash/deploy/getting-started.md | 7 ------- 2 files changed, 9 deletions(-) diff --git a/src/lib/services/user-service.test.ts b/src/lib/services/user-service.test.ts index 03966f662b19..3b64c3828d01 100644 --- a/src/lib/services/user-service.test.ts +++ b/src/lib/services/user-service.test.ts @@ -71,8 +71,6 @@ describe('Default admin initialization', () => { const DEFAULT_ADMIN_PASSWORD = 'unleash4all'; const CUSTOM_ADMIN_USERNAME = 'custom-admin'; const CUSTOM_ADMIN_PASSWORD = 'custom-password'; - const CUSTOM_ADMIN_NAME = 'Custom Admin'; - const CUSTOM_ADMIN_EMAIL = 'custom-admin@getunleash.io'; let userService: UserService; const sendGettingStartedMailMock = jest.fn(); diff --git a/website/docs/using-unleash/deploy/getting-started.md b/website/docs/using-unleash/deploy/getting-started.md index 892a6a30f13c..387e6a8b5301 100644 --- a/website/docs/using-unleash/deploy/getting-started.md +++ b/website/docs/using-unleash/deploy/getting-started.md @@ -36,13 +36,6 @@ If you'd like the default admin user to be created with a different username and - `UNLEASH_DEFAULT_ADMIN_USERNAME` - `UNLEASH_DEFAULT_ADMIN_PASSWORD` -Alternatively, you can provide a name and email address for the initial admin user: - -- `UNLEASH_DEFAULT_ADMIN_NAME` -- `UNLEASH_DEFAULT_ADMIN_EMAIL` - -Unleash will then create the admin account using the provided name and email address. Instead of setting an initial password during account creation, an email will be sent to the specified address with a link for the new admin user to securely set their password. - The way of defining these variables may vary depending on how you run Unleash.