mirror of
https://github.com/puppe/moneymoney-uberspace.git
synced 2025-12-20 01:12:17 +01:00
tidying up
This commit is contained in:
parent
dc31c4bdd7
commit
9df9cfee93
1 changed files with 2 additions and 4 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
WebBanking{version = 1.02,
|
WebBanking{version = 1.03,
|
||||||
url = 'https://dashboard.uberspace.de/login',
|
url = 'https://dashboard.uberspace.de/login',
|
||||||
services = {'Uberspace.de'},
|
services = {'Uberspace.de'},
|
||||||
description = string.format(
|
description = string.format(
|
||||||
|
|
@ -30,14 +30,12 @@ function InitializeSession (protocol, bankCode, username, username2,
|
||||||
usLogin = username:sub(1, splitPos - 1)
|
usLogin = username:sub(1, splitPos - 1)
|
||||||
usUsername = username:sub(splitPos + 1)
|
usUsername = username:sub(splitPos + 1)
|
||||||
else
|
else
|
||||||
-- If no `|` is found, use the entire value as both email and username
|
-- If no `|` is found, use the entire value as both login and username
|
||||||
usLogin = username
|
usLogin = username
|
||||||
usUsername = username
|
usUsername = username
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Login.
|
-- Login.
|
||||||
usUsername = usLogin
|
|
||||||
|
|
||||||
html = HTML(usConnection:get('https://dashboard.uberspace.de/login'))
|
html = HTML(usConnection:get('https://dashboard.uberspace.de/login'))
|
||||||
html:xpath('//input[@name="login"]'):attr('value', usLogin)
|
html:xpath('//input[@name="login"]'):attr('value', usLogin)
|
||||||
html:xpath('//input[@name="password"]'):attr('value', password)
|
html:xpath('//input[@name="password"]'):attr('value', password)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue