This commit is contained in:
Timothy J. Baek
2024-11-05 20:47:23 -08:00
parent 75b169e11d
commit 547682c674
2 changed files with 16 additions and 15 deletions

View File

@@ -2216,16 +2216,17 @@ 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
onboarding = False
if user is None:
user_count = Users.get_num_users()
onboarding = user_count == 0
return {
**({"onboarding": True} if onboarding else {}),
"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)