update UpdateURL() to delete server session when connection failed
This commit is contained in:
parent
94bcf10231
commit
ff8e7c3471
|
@ -8,7 +8,6 @@ function LoginFlow(startOver = false as boolean)
|
||||||
startOver = not session.server.UpdateURL(serverUrl)
|
startOver = not session.server.UpdateURL(serverUrl)
|
||||||
if startOver
|
if startOver
|
||||||
print "Could not connect to previously saved server."
|
print "Could not connect to previously saved server."
|
||||||
session.server.Delete()
|
|
||||||
end if
|
end if
|
||||||
else
|
else
|
||||||
startOver = true
|
startOver = true
|
||||||
|
|
|
@ -64,7 +64,13 @@ namespace session
|
||||||
' validate parameters
|
' validate parameters
|
||||||
if value = "" then return false
|
if value = "" then return false
|
||||||
session.server.Update("url", value)
|
session.server.Update("url", value)
|
||||||
return session.server.Populate()
|
|
||||||
|
success = session.server.Populate()
|
||||||
|
if not success
|
||||||
|
session.server.Delete()
|
||||||
|
end if
|
||||||
|
|
||||||
|
return success
|
||||||
end function
|
end function
|
||||||
|
|
||||||
' Use the saved server url to populate the global server session array (m.global.session.server)
|
' Use the saved server url to populate the global server session array (m.global.session.server)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user