mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 13:40:27 +02:00
feat: Preserve password and API token in integration settings loading
This commit is contained in:
@@ -331,10 +331,12 @@ def load_integration_settings() -> Dict[str, Dict[str, Any]]:
|
|||||||
merged[field] = str(value or "")
|
merged[field] = str(value or "")
|
||||||
if key == "calibre_opds":
|
if key == "calibre_opds":
|
||||||
merged["has_password"] = bool(isinstance(stored, Mapping) and stored.get("password"))
|
merged["has_password"] = bool(isinstance(stored, Mapping) and stored.get("password"))
|
||||||
merged["password"] = ""
|
# Do not clear the password here, let the template decide whether to show it or not
|
||||||
|
# merged["password"] = ""
|
||||||
elif key == "audiobookshelf":
|
elif key == "audiobookshelf":
|
||||||
merged["has_api_token"] = bool(isinstance(stored, Mapping) and stored.get("api_token"))
|
merged["has_api_token"] = bool(isinstance(stored, Mapping) and stored.get("api_token"))
|
||||||
merged["api_token"] = ""
|
# Do not clear the token here
|
||||||
|
# merged["api_token"] = ""
|
||||||
integrations[key] = merged
|
integrations[key] = merged
|
||||||
return integrations
|
return integrations
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user