Fix user selection with no public users

This commit is contained in:
thomabx 2020-03-23 12:10:57 -07:00
parent ee6cd0491c
commit 7d7226608d

View File

@ -391,7 +391,7 @@ function LoginFlow(startOver = false as boolean)
end if
publicUsersNodes.push(user)
end for
user = CreateUserSelectGroup(publicUsersNodes)
userSelected = CreateUserSelectGroup(publicUsersNodes)
m.scene.focusedChild.visible = false
if user = "backPressed" then
return LoginFlow(true)
@ -403,8 +403,10 @@ function LoginFlow(startOver = false as boolean)
return true
end if
end if
else
userSelected = ""
end if
passwordEntry = CreateSigninGroup(user)
passwordEntry = CreateSigninGroup(userSelected)
if passwordEntry = "backPressed" then
m.scene.focusedChild.visible = false
return LoginFlow(true)