Fix GrampsWeb login: use JSON body for /api/token/ endpoint (STI-104)

GrampsWeb expects JSON for the token endpoint, not form-encoded data.
Discovered during live API testing against production.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
SysAdmin Agent
2026-04-05 21:54:00 +00:00
parent 9f932abd2e
commit cf7ea8f9a6

View File

@@ -45,7 +45,7 @@ class GrampsWebClient:
def _login(self) -> None:
"""Authentifizierung bei GrampsWeb und Token-Speicherung."""
login_endpoints = [
("/api/token/", "form"),
("/api/token/", "json"),
("/api/login/", "json"),
]
for path, mode in login_endpoints: