kosync: Make sure there are no leading or trailing whitespaces (#13077)
This commit is contained in:
1 parent
8314838add
commit
84eb04ef17
1 file changed
+2
@@ -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