Check for successful login by looking for password input

Revised login check in v1.03: Previously, presence of the “login” field indicated unsuccessful login. However, this field also appears on the “meta” dashboard. Now, the script verifies login success by checking for a “password” field instead.
This commit is contained in:
Tobias 2024-11-02 18:03:42 +01:00
parent 9df9cfee93
commit 66d9361a6a

View file

@ -42,10 +42,10 @@ function InitializeSession (protocol, bankCode, username, username2,
html = HTML(
usConnection:request(html:xpath('//input[@name="submit"]'):click()))
--if html:xpath('//input[@name="login"]'):length() > 0 then
if html:xpath('//input[@name="password"]'):length() > 0 then
-- We are still at the login screen.
--return "Failed to log in. Please check your user credentials."
--end
return "Failed to log in. Please check your user credentials."
end
end
function ListAccounts (knownAccounts)