settings auth fix

frdel committed Nov 25, 2024 at 19:01 UTC 489ca317c5c575929633f70aa62fe64820e55ad7
1 file changed +3 -3
python/helpers/settings.py
+3 -3
@@ -286,7 +286,7 @@ def convert_out(settings: Settings) -> SettingsOutput:
286 "title": "Login",
287 "description": "User name",
288 "type": "input",
289 - "value": dotenv.get_dotenv_value(dotenv.KEY_AUTH_LOGIN),
289 + "value": dotenv.get_dotenv_value(dotenv.KEY_AUTH_LOGIN) or "",
290 }
291 )
292
@@ -296,7 +296,7 @@ def convert_out(settings: Settings) -> SettingsOutput:
296 "title": "Password",
297 "description": "User password",
298 "type": "password",
299 - "value": dotenv.get_dotenv_value(dotenv.KEY_AUTH_PASSWORD),
299 + "value": dotenv.get_dotenv_value(dotenv.KEY_AUTH_PASSWORD) or "",
300 }
301 )
302
@@ -402,7 +402,7 @@ def convert_out(settings: Settings) -> SettingsOutput:
402 "title": "RFC Password",
403 "description": "Password for remote function calls. Passwords must match on both systems. RFCs can not be used with empty password.",
404 "type": "password",
405 - "value": dotenv.get_dotenv_value(dotenv.KEY_RFC_PASSWORD),
405 + "value": dotenv.get_dotenv_value(dotenv.KEY_RFC_PASSWORD) or "",
406 }
407 )
408