mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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
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:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user