Name vailidation fix

This commit is contained in:
IgorTimofeev 2020-12-20 10:46:16 +03:00
parent 0610b6564b
commit 65c534b8f0

View File

@ -334,7 +334,7 @@ end
local function checkUserInputs()
local nameEmpty = #usernameInput.text == 0
local nameVaild = usernameInput.text:match("^[%w%s_]+$")
local nameVaild = usernameInput.text:match("^%w[%w%s_]+$")
local passValid = passwordSwitchAndLabel.switch.state or #passwordInput.text == 0 or #passwordSubmitInput.text == 0 or passwordInput.text == passwordSubmitInput.text
if (nameEmpty or nameVaild) and passValid then