Skip to content

Agent Zero AI framework

settings auth fix

frdel489ca317c5c5
diff --git a/python/helpers/settings.py b/python/helpers/settings.py
index ede754fd3..5672befa3 100644
--- a/python/helpers/settings.py
+++ b/python/helpers/settings.py
@@ -286,7 +286,7 @@ def convert_out(settings: Settings) -> SettingsOutput:
"title": "Login",
"description": "User name",
"type": "input",
- "value": dotenv.get_dotenv_value(dotenv.KEY_AUTH_LOGIN),
+ "value": dotenv.get_dotenv_value(dotenv.KEY_AUTH_LOGIN) or "",
}
)
@@ -296,7 +296,7 @@ def convert_out(settings: Settings) -> SettingsOutput:
"title": "Password",
"description": "User password",
"type": "password",
- "value": dotenv.get_dotenv_value(dotenv.KEY_AUTH_PASSWORD),
+ "value": dotenv.get_dotenv_value(dotenv.KEY_AUTH_PASSWORD) or "",
}
)
@@ -402,7 +402,7 @@ def convert_out(settings: Settings) -> SettingsOutput:
"title": "RFC Password",
"description": "Password for remote function calls. Passwords must match on both systems. RFCs can not be used with empty password.",
"type": "password",
- "value": dotenv.get_dotenv_value(dotenv.KEY_RFC_PASSWORD),
+ "value": dotenv.get_dotenv_value(dotenv.KEY_RFC_PASSWORD) or "",
}
)