mirror of
https://github.com/puppe/moneymoney-uberspace.git
synced 2025-12-20 09:22:18 +01:00
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:
parent
9df9cfee93
commit
66d9361a6a
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue