kosync: Make sure there are no leading or trailing whitespaces (#13077)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run

This commit is contained in:
beedaddy
2025-01-17 07:49:02 +01:00
committed by GitHub
parent 8314838add
commit 84eb04ef17

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{