mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-09-14 11:06:16 +05:00
Name vailidation fix
This commit is contained in:
parent
0610b6564b
commit
65c534b8f0
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user