transparently handle langflow auto login etc.
This commit is contained in:
parent
97ee36cea2
commit
e32a8387bf
1 changed files with 2 additions and 44 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue