Minor login tweak
This commit is contained in:
parent
b2c731541d
commit
05b4c9d2f5
|
@ -44,7 +44,6 @@ sub ShowServerSelect()
|
||||||
button = scene.findNode("submit")
|
button = scene.findNode("submit")
|
||||||
button.observeField("buttonSelected", port)
|
button.observeField("buttonSelected", port)
|
||||||
|
|
||||||
|
|
||||||
server_hostname = config.content.getChild(0)
|
server_hostname = config.content.getChild(0)
|
||||||
server_port = config.content.getChild(1)
|
server_port = config.content.getChild(1)
|
||||||
|
|
||||||
|
@ -94,10 +93,9 @@ sub ShowSignInSelect()
|
||||||
else if type(msg) = "roSGNodeEvent"
|
else if type(msg) = "roSGNodeEvent"
|
||||||
node = msg.getNode()
|
node = msg.getNode()
|
||||||
if node = "submit"
|
if node = "submit"
|
||||||
|
' Validate credentials
|
||||||
get_token(username.value, password.value)
|
get_token(username.value, password.value)
|
||||||
if get_setting("active_user") <> invalid
|
if get_setting("active_user") <> invalid then return
|
||||||
return
|
|
||||||
end if
|
|
||||||
print "Login attempt failed..."
|
print "Login attempt failed..."
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
Loading…
Reference in New Issue
Block a user