From 52aaa8c38359aa48ced5783d1b2c861085fa40a5 Mon Sep 17 00:00:00 2001 From: Sam Stenvall Date: Sun, 13 Oct 2024 12:12:51 +0300 Subject: [PATCH] Fix authentication after recent changes (thanks @jarmoruuth) --- pycaruna/authenticator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycaruna/authenticator.py b/pycaruna/authenticator.py index 89c4b2d..840cb04 100644 --- a/pycaruna/authenticator.py +++ b/pycaruna/authenticator.py @@ -38,7 +38,7 @@ def login(self): # JavaScript. c = r.content soup = BeautifulSoup(c, 'lxml') - action = "/wicket/page?3-1.0-userIDPanel-usernameLogin-loginWithUserID" + action = soup.find('form')['action'][1:][:11] + "0-userIDPanel-usernameLogin-loginWithUserID" # Build form variables (all hidden variables must always be included) svars = utils.get_hidden_form_vars(soup)