feat: onboarding screen

This commit is contained in:
Timothy J. Baek
2024-11-03 03:00:28 -08:00
parent cfe255bb95
commit 194b924a96
6 changed files with 130 additions and 7 deletions

View File

@@ -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)