Skip to content

Commit 6295be9

Browse files
committed
Fix login: GetKinderGartenIds requires POST, not GET
The endpoint was updated server-side to only accept POST with form data.
1 parent a777a02 commit 6295be9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kidplan_fetcher/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020

2121
def login(session: requests.Session, username: str, password: str) -> bool:
22-
resp = session.get(
22+
resp = session.post(
2323
f"{BASE_URL}/Account/GetKinderGartenIds",
24-
params={"username": username, "password": password},
24+
data={"username": username, "password": password},
2525
)
2626
resp.raise_for_status()
2727
try:

0 commit comments

Comments
 (0)