kosync: Make sure there are no leading or trailing whitespaces (#13077)

This commit is contained in:
beedaddy authored and GitHub committed 2025-01-17 07:49:02 +01:00
1 parent 8314838add
commit 84eb04ef17
1 file changed
+2
+2
View File
@@ -447,6 +447,7 @@ function KOSync:login(menu)
text = _("Login"),
callback = function()
local username, password = unpack(dialog:getFields())
username = util.trim(username)
local ok, err = validateUser(username, password)
if not ok then
UIManager:show(InfoMessage:new{
@@ -469,6 +470,7 @@ function KOSync:login(menu)
text = _("Register"),
callback = function()
local username, password = unpack(dialog:getFields())
username = util.trim(username)
local ok, err = validateUser(username, password)
if not ok then
UIManager:show(InfoMessage:new{