From 9df9cfee93bf146fc62c2b71ffe8c1b0fee305c5 Mon Sep 17 00:00:00 2001 From: Tobias <118622651+hatobi@users.noreply.github.com> Date: Sat, 2 Nov 2024 17:54:32 +0100 Subject: [PATCH] tidying up --- Uberspace.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Uberspace.lua b/Uberspace.lua index c32e731..3a5d849 100644 --- a/Uberspace.lua +++ b/Uberspace.lua @@ -4,7 +4,7 @@ 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', services = {'Uberspace.de'}, description = string.format( @@ -30,14 +30,12 @@ function InitializeSession (protocol, bankCode, username, username2, usLogin = username:sub(1, splitPos - 1) usUsername = username:sub(splitPos + 1) 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 usUsername = username end -- Login. - usUsername = usLogin - html = HTML(usConnection:get('https://dashboard.uberspace.de/login')) html:xpath('//input[@name="login"]'):attr('value', usLogin) html:xpath('//input[@name="password"]'):attr('value', password)