diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py index 3eed6f154..2ba545ad3 100644 --- a/backend/open_webui/main.py +++ b/backend/open_webui/main.py @@ -2216,11 +2216,16 @@ async def get_app_config(request: Request): if data is not None and "id" in data: user = Users.get_user_by_id(data["id"]) + user_count = 0 + if user is None: + user_count = Users.get_num_users() + return { "status": True, "name": WEBUI_NAME, "version": VERSION, "default_locale": str(DEFAULT_LOCALE), + **({"onboarding": True} if user_count is 0 else {}), "oauth": { "providers": { name: config.get("name", name) diff --git a/src/lib/components/OnBoarding.svelte b/src/lib/components/OnBoarding.svelte new file mode 100644 index 000000000..cb85ab9b2 --- /dev/null +++ b/src/lib/components/OnBoarding.svelte @@ -0,0 +1,63 @@ + + +{#if show} +