mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2025-12-20 11:09:21 +01:00
Blank password bugfix!
This commit is contained in:
parent
e79fefa4b5
commit
76a4ff12a2
@ -352,7 +352,7 @@ end
|
|||||||
local function checkUserInputs()
|
local function checkUserInputs()
|
||||||
local nameEmpty = #usernameInput.text == 0
|
local nameEmpty = #usernameInput.text == 0
|
||||||
local nameVaild = usernameInput.text:match("^%w[%w%s_]+$")
|
local nameVaild = usernameInput.text:match("^%w[%w%s_]+$")
|
||||||
local passValid = withoutPasswordSwitchAndLabel.switch.state or #passwordInput.text == 0 or #passwordSubmitInput.text == 0 or passwordInput.text == passwordSubmitInput.text
|
local passValid = withoutPasswordSwitchAndLabel.switch.state or (#passwordInput.text > 0 and #passwordSubmitInput.text > 0 and passwordInput.text == passwordSubmitInput.text)
|
||||||
|
|
||||||
if (nameEmpty or nameVaild) and passValid then
|
if (nameEmpty or nameVaild) and passValid then
|
||||||
usernamePasswordText.hidden = true
|
usernamePasswordText.hidden = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user