mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
Add option to disable setup wizard
This commit is contained in:
@@ -119,6 +119,7 @@ DISABLE_DOWNLOAD_ENDPOINT_AUTH = str_to_bool(
|
||||
os.environ.get("DISABLE_DOWNLOAD_ENDPOINT_AUTH", "false")
|
||||
)
|
||||
DISABLE_USERPASS_LOGIN = str_to_bool(os.environ.get("DISABLE_USERPASS_LOGIN", "false"))
|
||||
DISABLE_SETUP_WIZARD = str_to_bool(os.environ.get("DISABLE_SETUP_WIZARD", "false"))
|
||||
|
||||
# OIDC
|
||||
OIDC_ENABLED: Final = str_to_bool(os.environ.get("OIDC_ENABLED", "false"))
|
||||
|
||||
@@ -3,6 +3,7 @@ from fastapi import HTTPException
|
||||
from config import (
|
||||
DISABLE_EMULATOR_JS,
|
||||
DISABLE_RUFFLE_RS,
|
||||
DISABLE_SETUP_WIZARD,
|
||||
DISABLE_USERPASS_LOGIN,
|
||||
ENABLE_SCHEDULED_CONVERT_IMAGES_TO_WEBP,
|
||||
ENABLE_SCHEDULED_RESCAN,
|
||||
@@ -64,7 +65,8 @@ async def heartbeat() -> HeartbeatResponse:
|
||||
return {
|
||||
"SYSTEM": {
|
||||
"VERSION": get_version(),
|
||||
"SHOW_SETUP_WIZARD": len(db_user_handler.get_admin_users()) == 0,
|
||||
"SHOW_SETUP_WIZARD": len(db_user_handler.get_admin_users()) == 0
|
||||
and not DISABLE_SETUP_WIZARD,
|
||||
},
|
||||
"METADATA_SOURCES": {
|
||||
"ANY_SOURCE_ENABLED": (
|
||||
|
||||
Reference in New Issue
Block a user