Skip to content
Snippets Groups Projects
Commit b9f35ffc authored by dg's avatar dg
Browse files

Correctly logout from profile

git-svn-id: http://svn.net-core.org/repos/t-engine4@1464 51575b47-30f0-44d4-a5cc-537603b46e54
parent 3cb120c1
No related branches found
No related tags found
No related merge requests found
......@@ -307,9 +307,11 @@ end
function _M:logOut()
profile.generic.online = nil
profile.auth = nil
local d = "/profiles/"..self.name.."/generic/"
fs.mount(engine.homepath, "/")
fs.delete(d.."online.profile")
local restore = fs.getWritePath()
fs.setWritePath(engine.homepath)
fs.delete("/profiles/"..self.name.."/generic/online.profile")
if restore then fs.setWritePath(restore) end
end
function _M:checkFirstRun()
......
......@@ -429,9 +429,9 @@ function _M:createProfile(loginItem)
if self.justlogin then
profile:performlogin(loginItem.login, loginItem.pass)
if profile.auth then
Dialog:simplePopup("Profile logged in!", "Your online profile is active now...", function() self:checkLogged() self:selectStepProfile() end )
Dialog:simplePopup("Profile logged in!", "Your online profile is active now...", function() end )
else
Dialog:simplePopup("Log in rejected", "Couldn't log you...", function() self:selectStepProfile() end )
Dialog:simplePopup("Log in rejected", "Couldn't log you...", function() end )
end
return
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment