From e32a8387bf3fe30ee69120ba86b9c65243d861b1 Mon Sep 17 00:00:00 2001 From: phact Date: Wed, 8 Oct 2025 22:09:57 -0400 Subject: [PATCH] transparently handle langflow auto login etc. --- src/tui/screens/config.py | 46 ++------------------------------------- 1 file changed, 2 insertions(+), 44 deletions(-) diff --git a/src/tui/screens/config.py b/src/tui/screens/config.py index d7243297..7aae6f85 100644 --- a/src/tui/screens/config.py +++ b/src/tui/screens/config.py @@ -383,50 +383,8 @@ class ConfigScreen(Screen): self.inputs["openrag_documents_paths"] = input_widget yield Static(" ") - # Langflow Auth Settings - yield Static("Langflow Auth Settings", classes="tab-header") - yield Static(" ") - - # Langflow Auto Login - yield Label("Langflow Auto Login") - current_value = getattr(self.env_manager.config, "langflow_auto_login", "False") - input_widget = Input( - placeholder="False", value=current_value, id="input-langflow_auto_login" - ) - yield input_widget - self.inputs["langflow_auto_login"] = input_widget - yield Static(" ") - - # Langflow New User Is Active - yield Label("Langflow New User Is Active") - current_value = getattr( - self.env_manager.config, "langflow_new_user_is_active", "False" - ) - input_widget = Input( - placeholder="False", - value=current_value, - id="input-langflow_new_user_is_active", - ) - yield input_widget - self.inputs["langflow_new_user_is_active"] = input_widget - yield Static(" ") - - # Langflow Enable Superuser CLI - yield Label("Langflow Enable Superuser CLI") - current_value = getattr( - self.env_manager.config, "langflow_enable_superuser_cli", "False" - ) - input_widget = Input( - placeholder="False", - value=current_value, - id="input-langflow_enable_superuser_cli", - ) - yield input_widget - self.inputs["langflow_enable_superuser_cli"] = input_widget - yield Static(" ") - yield Static(" ") - - # Langflow Secret Key removed from UI; generated automatically on save + # Langflow Auth Settings - These are automatically configured based on password presence + # Not shown in UI; set in env_manager.setup_secure_defaults() # Add optional fields only in full mode if self.mode == "full":