From 66d9361a6a68ca712d77e03ebb493325b7616d87 Mon Sep 17 00:00:00 2001 From: Tobias <118622651+hatobi@users.noreply.github.com> Date: Sat, 2 Nov 2024 18:03:42 +0100 Subject: [PATCH] Check for successful login by looking for password input MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- Uberspace.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Uberspace.lua b/Uberspace.lua index 3a5d849..d4474d2 100644 --- a/Uberspace.lua +++ b/Uberspace.lua @@ -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)