This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

User Access Control: cloud sync
#1
Hi everybody,
everytime customer updates his "user control access" for new guests, he must open "LM Cloud APP" to sync the cloud to enable the new guests.

Is there a way to sync the cloud in auto mode when "user control access" is saved?

Thanks.

BR
Reply
#2
Resident script with 0 sleep time. It will execute full cloud sync when user access is changed and partial cloud sync is performed.
Code:
lb = require('localbus')
client = lb.new()
client:sethandler('reload', function(which)
  if which == 'cloud-sync-users' then
    lb.send({
      action = 'reload',
      which = 'cloud-sync'
    })
  end
end)

while true do
  client:step()
end
Reply


Forum Jump: