Update API docs
This commit is contained in:
parent
5904f0593f
commit
2595e4ce92
|
@ -55,12 +55,6 @@ function setPreference(key as string, value as string)
|
||||||
return set_user_setting("pref-" + key, value)
|
return set_user_setting("pref-" + key, value)
|
||||||
end function
|
end function
|
||||||
|
|
||||||
sub setActive()
|
|
||||||
if m.global.session.user.settings["global.rememberme"]
|
|
||||||
set_setting("active_user", m.top.id)
|
|
||||||
end if
|
|
||||||
end sub
|
|
||||||
|
|
||||||
sub setServer(hostname as string)
|
sub setServer(hostname as string)
|
||||||
m.top.server = hostname
|
m.top.server = hostname
|
||||||
end sub
|
end sub
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -14,9 +14,8 @@ function get_token(user as string, password as string)
|
||||||
|
|
||||||
userdata = CreateObject("roSGNode", "UserData")
|
userdata = CreateObject("roSGNode", "UserData")
|
||||||
userdata.json = json
|
userdata.json = json
|
||||||
|
|
||||||
userdata.callFunc("setActive")
|
|
||||||
userdata.callFunc("saveToRegistry")
|
userdata.callFunc("saveToRegistry")
|
||||||
|
|
||||||
return userdata
|
return userdata
|
||||||
end function
|
end function
|
||||||
|
|
||||||
|
@ -165,8 +164,8 @@ function AuthenticateViaQuickConnect(secret)
|
||||||
userdata.json = jsonResponse
|
userdata.json = jsonResponse
|
||||||
session.user.Update("id", jsonResponse.User.Id)
|
session.user.Update("id", jsonResponse.User.Id)
|
||||||
session.user.Update("authToken", jsonResponse.AccessToken)
|
session.user.Update("authToken", jsonResponse.AccessToken)
|
||||||
userdata.callFunc("setActive")
|
|
||||||
userdata.callFunc("saveToRegistry")
|
userdata.callFunc("saveToRegistry")
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user